3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '# \w*([0-9]{1}) (\w+)#'; $string = "PHP5 released PHP6 not released"; preg_match_all($pattern, $string, $matches); print_r($matches[1]);

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.70.0150.00616.63
8.3.60.0070.00718.56
8.3.50.0210.00616.65
8.3.40.0080.00618.92
8.3.30.0070.00718.79
8.3.20.0070.00718.89
8.3.10.0040.00423.66
8.3.00.0000.01119.50
8.2.190.0070.00717.00
8.2.180.0110.00718.66
8.2.170.0150.00322.96
8.2.160.0130.00320.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00019.95
8.2.110.0110.00722.42
8.2.100.0080.00317.84
8.2.90.0090.00018.09
8.2.80.0030.00619.20
8.2.70.0030.00617.93
8.2.60.0050.00317.93
8.2.50.0040.00418.10
8.2.40.0040.00420.61
8.2.30.0000.00719.22
8.2.20.0040.00417.95
8.2.10.0050.00317.92
8.2.00.0070.00018.20
8.1.280.0070.01425.92
8.1.270.0040.00420.14
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0060.00322.03
8.1.230.0070.00420.97
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0000.00817.25
8.1.180.0080.00018.10
8.1.170.0000.00818.79
8.1.160.0070.00018.92
8.1.150.0000.00718.75
8.1.140.0030.00519.09
8.1.130.0000.00719.07
8.1.120.0000.00717.54
8.1.110.0050.00217.54
8.1.100.0040.00417.50
8.1.90.0040.00417.55
8.1.80.0040.00417.55
8.1.70.0050.00317.50
8.1.60.0030.00717.54
8.1.50.0000.00717.48
8.1.40.0060.00317.57
8.1.30.0030.00517.56
8.1.20.0000.00717.75
8.1.10.0040.00417.69
8.1.00.0000.00817.57
8.0.300.0060.00320.10
8.0.290.0070.00016.75
8.0.280.0070.00018.31
8.0.270.0080.00017.27
8.0.260.0070.00017.21
8.0.250.0000.00717.07
8.0.240.0000.00817.01
8.0.230.0030.00317.02
8.0.220.0030.00316.91
8.0.210.0020.00516.92
8.0.200.0060.00017.06
8.0.190.0040.00416.93
8.0.180.0000.00717.01
8.0.170.0080.00416.87
8.0.160.0030.00317.03
8.0.150.0070.00016.86
8.0.140.0000.00816.84
8.0.130.0090.00013.38
8.0.120.0040.00416.99
8.0.110.0000.00716.99
8.0.100.0000.00716.84
8.0.90.0000.00716.84
8.0.80.0090.00616.92
8.0.70.0000.00716.91
8.0.60.0000.00817.00
8.0.50.0000.00716.81
8.0.30.0080.01017.29
8.0.20.0120.01117.40
8.0.10.0000.00717.00
8.0.00.0140.00716.79
7.4.330.0060.00016.68
7.4.320.0030.00316.69
7.4.300.0030.00316.49
7.4.290.0030.00316.65
7.4.280.0040.00416.73
7.4.270.0040.00416.59
7.4.260.0030.00316.77
7.4.250.0000.00716.65
7.4.240.0030.00316.73
7.4.230.0030.00316.54
7.4.220.0030.00516.63
7.4.210.0100.00616.69
7.4.200.0000.00716.75
7.4.160.0110.01216.62
7.4.150.0070.01717.40
7.4.140.0120.00817.86
7.4.130.0070.01016.68
7.4.120.0090.01116.59
7.4.110.0120.00416.60
7.4.100.0060.01216.69
7.4.90.0100.00716.78
7.4.80.0070.01019.39
7.4.70.0060.01016.63
7.4.60.0130.00316.52
7.4.50.0110.00816.69
7.4.40.0030.01316.67
7.4.00.0060.01014.98
7.3.330.0050.00013.32
7.3.320.0000.00513.12
7.3.310.0000.00716.31
7.3.300.0000.00716.25
7.3.290.0040.00416.34
7.3.280.0120.00716.39
7.3.270.0090.00917.40
7.3.260.0080.01216.59
7.3.250.0120.00716.52
7.3.240.0090.00816.51
7.3.230.0110.00616.56
7.3.210.0040.01516.36
7.3.200.0060.01016.63
7.3.190.0130.00316.57
7.3.180.0120.00316.74
7.3.170.0150.00616.61
7.3.160.0040.01216.64
7.2.330.0130.00316.80
7.2.320.0100.00716.77
7.2.310.0070.01016.82
7.2.300.0130.01016.59
7.2.290.0050.01016.49
7.2.60.0090.00317.06
7.2.10.0430.01017.97
7.2.00.0420.00417.91
7.1.200.0070.00715.98
7.1.130.0370.01016.61
7.1.120.0320.01016.93
7.1.110.0760.01316.36
7.1.100.0310.00916.00
7.1.90.0430.00316.50
7.1.80.0390.00416.53
7.1.70.0290.01115.57
7.1.60.0490.00733.36
7.1.50.0430.00933.14
7.1.40.0400.00732.73
7.1.30.0500.01032.93
7.1.20.0480.00933.22
7.1.10.0240.01715.02
7.1.00.0390.00615.04

preferences:
65.4 ms | 401 KiB | 5 Q