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);

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.0060.00918.55
8.3.50.0060.00916.34
8.3.40.0120.00318.80
8.3.30.0140.00018.82
8.3.20.0030.00618.67
8.3.10.0040.00423.66
8.3.00.0080.00019.26
8.2.180.0090.00618.54
8.2.170.0080.01122.96
8.2.160.0060.01220.55
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0050.00219.35
8.2.120.0080.00026.35
8.2.110.0040.00422.31
8.2.100.0040.00817.84
8.2.90.0000.00917.91
8.2.80.0000.00818.98
8.2.70.0030.00617.80
8.2.60.0080.00017.79
8.2.50.0040.00418.16
8.2.40.0060.00320.48
8.2.30.0000.00719.25
8.2.20.0040.00418.02
8.2.10.0030.00617.93
8.2.00.0000.00718.08
8.1.280.0070.01125.92
8.1.270.0000.00820.12
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0040.00422.07
8.1.230.0040.00720.86
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0040.00418.63
8.1.160.0000.00718.77
8.1.150.0070.00020.64
8.1.140.0040.00419.09
8.1.130.0000.00718.98
8.1.120.0030.00317.43
8.1.110.0030.00517.43
8.1.100.0040.00417.57
8.1.90.0040.00417.54
8.1.80.0030.00417.55
8.1.70.0040.00417.56
8.1.60.0060.00317.54
8.1.50.0030.00617.55
8.1.40.0060.00317.50
8.1.30.0040.00417.71
8.1.20.0040.00417.70
8.1.10.0000.00717.55
8.1.00.0000.00817.54
8.0.300.0060.00619.89
8.0.290.0030.00516.88
8.0.280.0030.00318.39
8.0.270.0030.00317.12
8.0.260.0000.00617.21
8.0.250.0000.00717.04
8.0.240.0050.00217.06
8.0.230.0000.00716.94
8.0.220.0070.00016.96
8.0.210.0000.00716.98
8.0.200.0000.00617.02
8.0.190.0060.00316.94
8.0.180.0040.00416.93
8.0.170.0080.00316.99
8.0.160.0040.00416.95
8.0.150.0070.00016.98
8.0.140.0000.00816.98
8.0.130.0000.00713.44
8.0.120.0030.00516.84
8.0.110.0050.00316.83
8.0.100.0000.00816.79
8.0.90.0000.00716.95
8.0.80.0070.01316.91
8.0.70.0070.00016.83
8.0.60.0070.00016.99
8.0.50.0000.00716.84
8.0.30.0070.01217.07
8.0.20.0090.01417.42
8.0.10.0070.00017.11
8.0.00.0160.00616.98
7.4.330.0000.00516.66
7.4.320.0000.00616.75
7.4.300.0030.00316.69
7.4.290.0000.00716.63
7.4.280.0030.00516.50
7.4.270.0040.00416.54
7.4.260.0030.00316.62
7.4.250.0030.00316.62
7.4.240.0030.00516.73
7.4.230.0030.00316.68
7.4.220.0040.00316.76
7.4.210.0030.01316.75
7.4.200.0000.00716.75
7.4.160.0140.00416.61
7.4.150.0090.00917.40
7.4.140.0120.00917.86
7.4.130.0130.00716.68
7.4.120.0100.01016.63
7.4.110.0070.01016.56
7.4.100.0070.01116.68
7.4.90.0060.01116.37
7.4.80.0070.01319.39
7.4.70.0030.01716.81
7.4.60.0000.01516.62
7.4.50.0040.01116.70
7.4.40.0100.00716.55
7.4.00.0100.00314.95
7.3.330.0050.00013.11
7.3.320.0050.00013.13
7.3.310.0000.00716.36
7.3.300.0030.00316.27
7.3.290.0060.00016.25
7.3.280.0090.00716.30
7.3.270.0070.01117.40
7.3.260.0070.01216.43
7.3.250.0100.01016.29
7.3.240.0130.00416.43
7.3.230.0130.00916.48
7.3.210.0130.00316.65
7.3.200.0060.00916.46
7.3.190.0060.00916.36
7.3.180.0060.00916.26
7.3.170.0120.01216.39
7.3.160.0080.00816.16
7.2.330.0130.00416.76
7.2.320.0070.00416.40
7.2.310.0040.01416.46
7.2.300.0100.01316.59
7.2.290.0050.01016.54
7.2.60.0100.00316.93
7.2.50.0100.00316.69
7.2.10.0560.00817.76
7.2.00.0260.01618.15
7.1.200.0100.00315.84
7.1.130.0410.00917.14
7.1.120.0280.01417.24
7.1.110.0250.01416.26
7.1.100.0330.00616.47
7.1.90.0540.00616.30
7.1.80.0420.01016.07
7.1.70.0560.00915.29
7.1.60.0470.01033.31
7.1.50.0540.01033.13
7.1.40.0470.01032.82
7.1.30.0660.00432.79
7.1.20.0500.01033.00
7.1.10.0380.00914.77
7.1.00.0340.00714.99

preferences:
62.76 ms | 400 KiB | 5 Q