3v4l.org

run code in 300+ PHP versions simultaneously
<?php$buf = ' @abc{ ';preg_match('/(?P<token>[^\s]+)\s*/', $buf, $match, PREG_OFFSET_CAPTURE);print_r($match);$buf = substr($buf, $match[0][1] + strlen($match[0][0]));var_dump($buf);var_dump($match['token'][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.0070.00718.30
8.3.50.0120.01221.97
8.3.40.0140.00018.53
8.3.30.0070.00718.88
8.3.20.0000.00720.21
8.3.10.0040.00421.69
8.3.00.0090.00019.25
8.2.180.0070.00716.38
8.2.170.0110.00422.96
8.2.160.0100.00720.47
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00519.42
8.2.110.0040.00421.12
8.2.100.0080.00417.63
8.2.90.0000.00819.18
8.2.80.0050.00317.97
8.2.70.0120.00017.25
8.2.60.0090.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00918.09
8.2.30.0050.00218.00
8.2.20.0040.00417.50
8.2.10.0000.00717.97
8.2.00.0000.00717.53
8.1.280.0100.00725.92
8.1.270.0030.00620.56
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00423.98
8.1.230.0030.00718.97
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0050.00318.72
8.1.160.0040.00421.93
8.1.150.0030.00318.65
8.1.140.0000.00717.36
8.1.130.0070.00017.70
8.1.120.0030.00317.21
8.1.110.0000.00817.34
8.1.100.0000.00817.14
8.1.90.0050.00217.21
8.1.80.0040.00417.31
8.1.70.0000.00717.25
8.1.60.0000.01217.39
8.1.50.0000.00717.27
8.1.40.0030.00617.25
8.1.30.0000.00717.51
8.1.20.0040.00417.37
8.1.10.0050.00217.38
8.1.00.0050.00217.33
8.0.300.0040.00418.77
8.0.290.0030.00516.58
8.0.280.0070.00018.37
8.0.270.0030.00317.18
8.0.260.0000.00617.17
8.0.250.0030.00316.84
8.0.240.0030.00316.80
8.0.230.0000.00616.78
8.0.220.0070.00016.71
8.0.210.0070.00016.79
8.0.200.0030.00316.77
8.0.190.0040.00416.78
8.0.180.0060.00316.64
8.0.170.0040.00416.75
8.0.160.0000.00716.71
8.0.150.0040.00416.73
8.0.140.0040.00416.70
8.0.130.0000.00513.41
8.0.120.0070.00016.76
8.0.110.0000.00816.59
8.0.100.0050.00216.73
8.0.90.0040.00416.64
8.0.80.0030.01316.70
8.0.70.0020.00516.61
8.0.60.0000.00716.70
8.0.50.0030.00516.68
8.0.30.0160.00616.84
8.0.20.0090.01317.40
8.0.10.0000.00816.90
8.0.00.0080.00916.62
7.4.330.0050.00015.02
7.4.320.0000.00616.26
7.4.300.0060.00016.34
7.4.290.0030.00316.36
7.4.280.0040.00416.30
7.4.270.0040.00416.46
7.4.260.0030.00416.32
7.4.250.0000.00716.38
7.4.240.0020.00516.36
7.4.230.0070.00016.44
7.4.220.0070.01016.30
7.4.210.0070.01316.40
7.4.200.0030.00316.39
7.4.160.0090.00616.34
7.4.150.0090.00917.40
7.4.140.0110.00517.86
7.4.130.0120.00616.39
7.4.120.0120.00816.35
7.4.110.0070.01116.43
7.4.100.0100.00716.34
7.4.90.0200.00316.64
7.4.80.0070.02019.39
7.4.70.0140.00316.51
7.4.60.0120.00316.39
7.4.50.0030.00616.00
7.4.40.0060.01016.07
7.4.30.0140.00916.29
7.3.330.0000.00513.03
7.3.320.0000.00613.00
7.3.310.0070.00016.19
7.3.300.0000.00716.02
7.3.290.0110.00516.06
7.3.280.0090.00816.10
7.3.270.0170.00017.40
7.3.260.0130.01016.38
7.3.250.0070.01216.46
7.3.240.0170.00016.41
7.3.230.0000.01716.41
7.3.210.0100.00716.01
7.3.200.0160.00019.39
7.3.190.0070.01016.52
7.3.180.0130.00316.28
7.3.170.0080.00816.27
7.3.160.0060.00916.11
7.2.330.0170.00016.50
7.2.320.0100.00716.41
7.2.310.0030.01416.59
7.2.300.0170.00016.49
7.2.290.0030.01416.49
5.4.340.3600.03718.88
5.4.320.2530.04019.15
5.4.310.0930.04319.23
5.4.300.2570.03019.14
5.4.290.2730.04018.94
5.4.280.3430.04019.01
5.4.270.2430.03719.14
5.4.260.3200.04018.87
5.4.250.2530.04019.23
5.4.240.2400.03019.09
5.4.230.2470.03018.98
5.4.220.2230.03719.21
5.4.210.3200.03319.07
5.4.200.3430.03719.00
5.4.190.3270.03719.15
5.4.180.4030.03319.13
5.4.170.3700.03019.07
5.4.160.4470.04319.04
5.4.150.3730.03318.96
5.4.140.3630.03316.31
5.4.130.3970.03316.33
5.4.120.3630.02716.50
5.4.110.4170.04316.40
5.4.100.3330.03316.54
5.4.90.3730.02716.51
5.4.80.3670.02716.40
5.4.70.3300.02716.39
5.4.60.3800.04016.23
5.4.50.3930.03716.30
5.4.40.2800.03316.43
5.4.30.3370.03316.24
5.4.20.3470.04016.42
5.4.10.3330.04016.57
5.4.00.4100.04015.78

preferences:
44.36 ms | 401 KiB | 5 Q