3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'hello world, world!'; # 0123456 var_dump(preg_match('/\Gworld/', $string, $matches, PREG_OFFSET_CAPTURE, 6), $matches[0]); var_dump(preg_match('/\Gworld/', $string, $matches, PREG_OFFSET_CAPTURE, 3), $matches[0]);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0100.01018.55
8.3.50.0130.00722.11
8.3.40.0150.00018.96
8.3.30.0070.00719.04
8.3.20.0000.00720.19
8.3.10.0040.00422.02
8.3.00.0050.00219.15
8.2.180.0150.00018.43
8.2.170.0180.00318.89
8.2.160.0070.00722.96
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0100.00317.80
8.2.110.0090.00020.46
8.2.100.0040.00718.22
8.2.90.0000.00719.05
8.2.80.0060.00317.97
8.2.70.0030.00717.75
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0060.00319.88
8.2.30.0090.00018.11
8.2.20.0050.00317.82
8.2.10.0040.00418.01
8.2.00.0030.00517.69
8.1.280.0150.00325.92
8.1.270.0040.00418.88
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0140.00622.14
8.1.230.0070.00318.99
8.1.220.0040.00417.74
8.1.210.0050.00518.77
8.1.200.0040.00817.35
8.1.190.0040.00417.34
8.1.180.0080.00018.10
8.1.170.0000.00818.69
8.1.160.0000.00721.96
8.1.150.0000.00718.75
8.1.140.0050.00317.43
8.1.130.0030.00317.80
8.1.120.0000.00717.50
8.1.110.0070.00017.45
8.1.100.0000.00717.42
8.1.90.0040.00317.58
8.1.80.0070.00017.46
8.1.70.0050.00217.39
8.1.60.0050.00317.73
8.1.50.0000.00817.61
8.1.40.0040.00417.48
8.1.30.0030.00617.79
8.1.20.0070.00017.54
8.1.10.0000.00717.73
8.1.00.0000.00817.65
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.45
8.0.270.0030.00317.16
8.0.260.0000.00617.11
8.0.250.0040.00417.09
8.0.240.0000.00717.13
8.0.230.0070.00017.10
8.0.220.0040.00416.99
8.0.210.0030.00517.10
8.0.200.0040.00417.09
8.0.190.0070.00017.08
8.0.180.0030.00517.09
8.0.170.0050.00517.02
8.0.160.0030.00616.90
8.0.150.0070.00016.95
8.0.140.0000.00717.02
8.0.130.0060.00013.48
8.0.120.0030.00516.98
8.0.110.0000.00817.01
8.0.100.0040.00416.87
8.0.90.0000.00717.01
8.0.80.0080.00817.06
8.0.70.0040.00417.07
8.0.60.0040.00417.09
8.0.50.0050.00216.87
8.0.30.0160.00617.15
8.0.20.0110.00817.41
8.0.10.0000.00816.99
8.0.00.0150.00516.80
7.4.330.0060.00015.05
7.4.320.0060.00016.76
7.4.300.0060.00016.70
7.4.290.0000.00716.49
7.4.280.0070.00316.77
7.4.270.0040.00416.73
7.4.260.0000.00716.63
7.4.250.0040.00416.69
7.4.240.0050.00316.72
7.4.230.0000.00716.62
7.4.220.0090.00916.63
7.4.210.0060.01016.84
7.4.200.0030.00316.83
7.4.160.0130.00316.69
7.4.150.0060.01117.40
7.4.140.0090.00817.86
7.4.130.0130.00416.78
7.4.120.0050.01316.65
7.4.110.0060.01216.70
7.4.100.0090.00916.68
7.4.90.0090.00916.64
7.4.80.0030.01319.39
7.4.70.0140.00316.68
7.4.60.0030.01316.80
7.4.50.0000.00616.72
7.4.40.0110.00616.52
7.4.30.0120.00616.61
7.4.00.0030.01014.81
7.3.330.0030.00313.19
7.3.320.0000.00613.29
7.3.310.0060.00316.20
7.3.300.0030.00316.26
7.3.290.0070.00816.43
7.3.280.0030.01216.45
7.3.270.0130.00317.40
7.3.260.0090.00916.60
7.3.250.0090.00816.45
7.3.240.0060.01216.36
7.3.230.0030.01516.59
7.3.210.0080.00816.40
7.3.200.0160.00019.39
7.3.190.0060.01216.45
7.3.180.0170.00316.60
7.3.170.0090.00916.41
7.3.160.0060.01016.45
7.2.330.0090.00916.61
7.2.320.0090.00916.44
7.2.310.0150.00616.86
7.2.300.0140.00316.73
7.2.290.0060.01616.63
7.2.00.0070.00719.23
7.1.100.0000.01118.27
7.1.70.0030.00317.47
7.1.60.0130.01319.46
7.1.50.0060.01316.83
7.1.00.0030.07322.29
7.0.200.0000.00716.96
7.0.140.0030.03721.98
7.0.60.0100.05319.86
7.0.50.0000.08317.82
7.0.40.0070.09020.30
7.0.30.0400.06720.12
7.0.20.0370.07320.03
7.0.10.0130.04020.18
7.0.00.0100.07720.18
5.6.280.0000.07321.02
5.6.210.0070.06020.52
5.6.200.0100.08018.13
5.6.190.0100.07720.59
5.6.180.0330.08020.35
5.6.170.0300.06020.54
5.6.160.0030.09320.51
5.6.150.0100.04718.17
5.6.140.0070.05318.09
5.6.130.0030.04318.22
5.6.120.0070.08720.98
5.6.110.0100.08320.94
5.6.100.0100.03720.88
5.6.90.0130.08020.94
5.6.80.0070.08320.35
5.5.350.0070.03020.43
5.5.340.0030.05717.98
5.5.330.0000.04320.21
5.5.320.0030.08020.25
5.5.310.0300.06020.33
5.5.300.0070.08017.96
5.5.290.0030.05318.05
5.5.280.0100.08720.79
5.5.270.0070.07020.95
5.5.260.0000.04320.86
5.5.250.0100.07720.46
5.5.240.2230.05320.34
5.4.450.0530.06019.41
5.4.440.0600.06319.27
5.4.430.0100.05319.51
5.4.420.0200.04319.42
5.4.410.0170.04719.38
5.4.400.0030.06318.96
5.4.390.0170.05318.51
5.4.380.0130.05718.66
5.4.370.0270.05718.73
5.4.360.0170.05018.55
5.4.350.0200.05318.71
5.4.340.0200.05718.75
5.4.320.0200.05318.50
5.4.310.0170.06018.47
5.4.300.0100.06018.53
5.4.290.0170.05318.70
5.4.280.0170.05318.68
5.4.270.0230.04718.52
5.4.260.0130.05718.68
5.4.250.0070.06318.62
5.4.240.0130.05718.71
5.4.230.0170.05318.46
5.4.220.0170.06018.45
5.4.210.0100.06018.68
5.4.200.0100.05316.61
5.4.190.0230.04318.57
5.4.180.0200.05718.53
5.4.170.0200.05018.46
5.4.160.0230.04718.61
5.4.150.0130.05718.66
5.4.140.0230.04316.17
5.4.130.0200.04716.04
5.4.120.0200.04716.16
5.4.110.0230.04316.29
5.4.100.0070.06016.19
5.4.90.0030.06316.25
5.4.80.0170.05716.11
5.4.70.0170.05316.27
5.4.60.0230.04016.32
5.4.50.0230.04016.13
5.4.40.0130.05316.05
5.4.30.0230.04016.16
5.4.20.0170.05316.13
5.4.10.0170.04716.10
5.4.00.0030.06015.68
5.3.290.0130.05714.58
5.3.280.0130.05314.66
5.3.270.0130.05714.65
5.3.260.0270.04714.72
5.3.250.0130.05314.54
5.3.240.0230.06314.56
5.3.230.0100.06014.59
5.3.220.0100.05714.56
5.3.210.0230.04714.63
5.3.200.0170.05014.61
5.3.190.0170.05314.60
5.3.180.0100.06714.47
5.3.170.0070.05714.56
5.3.160.0270.04014.61
5.3.150.0300.03314.66
5.3.140.0030.06714.53
5.3.130.0200.05314.54
5.3.120.0100.06014.50
5.3.110.0130.06014.60
5.3.100.0100.05714.02
5.3.90.0170.05014.00
5.3.80.0200.05014.00
5.3.70.0200.04713.95
5.3.60.0230.04313.95
5.3.50.0170.04713.86
5.3.40.0170.05313.87
5.3.30.0130.05013.89
5.3.20.0200.04313.60
5.3.10.0130.05013.59
5.3.00.0130.05313.58
5.2.170.0200.03311.18
5.2.160.0030.05011.36
5.2.150.0130.04011.09
5.2.140.0130.04011.16
5.2.130.0100.04711.31
5.2.120.0070.04711.15
5.2.110.0100.04311.12
5.2.100.0100.04011.18
5.2.90.0200.03311.17
5.2.80.0070.04711.05
5.2.70.0070.05311.05
5.2.60.0100.04710.96
5.2.50.0200.03711.23
5.2.40.0070.04711.04
5.2.30.0170.05010.95
5.2.20.0230.03310.87
5.2.10.0130.03710.83
5.2.00.0000.05010.73
5.1.60.0070.03710.14
5.1.50.0100.03710.10
5.1.40.0200.03710.01
5.1.30.0200.03010.48
5.1.20.0130.03710.39
5.1.10.0170.03010.13
5.1.00.0100.03710.08
5.0.50.0070.0308.69
5.0.40.0000.0338.43
5.0.30.0030.0478.27
5.0.20.0130.0208.30
5.0.10.0100.0238.20
5.0.00.0070.0508.34
4.4.90.0030.0235.91
4.4.80.0030.0275.87
4.4.70.0100.0175.93
4.4.60.0030.0235.82
4.4.50.0030.0235.88
4.4.40.0070.0335.90
4.4.30.0100.0175.95
4.4.20.0030.0305.91
4.4.10.0070.0275.97
4.4.00.0030.0405.89
4.3.110.0030.0235.84
4.3.100.0170.0105.79
4.3.90.0070.0205.82
4.3.80.0070.0335.81
4.3.70.0070.0305.79
4.3.60.0200.0175.82
4.3.50.0070.0235.82
4.3.40.0000.0405.78
4.3.30.0030.0234.55
4.3.20.0000.0274.57
4.3.10.0000.0274.48
4.3.00.0130.02711.69

preferences:
63.53 ms | 401 KiB | 5 Q