3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * This should produce failures when using a version of libpcre older than 8.32 */ // Ignore versions other than 5.3-5.5 if (!preg_match('/^5\.[345]\./', phpversion())) { print "Don't care about this version\n"; exit(0); } preg_match('/((?:a?)*)*c/', 'aac', $matches); if ($matches[1] === 'aa') { print "FAIL\n"; } else { print "PASS\n"; }

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)
7.2.00.0040.01119.51
7.1.100.0100.00318.04
7.1.70.0040.00416.89
7.1.60.0060.00619.40
7.1.50.0120.00016.86
7.1.00.0030.03322.33
7.0.200.0030.01015.01
7.0.140.0070.07021.97
7.0.120.0000.07722.09
7.0.60.0170.07319.92
7.0.50.0070.03717.82
7.0.40.0030.04017.74
7.0.30.0030.04317.72
7.0.20.0030.04017.74
7.0.10.0100.03317.73
7.0.00.0030.04017.77
5.6.280.0000.10021.07
5.6.210.0070.08320.54
5.6.200.0030.04018.15
5.6.190.0000.04318.21
5.6.180.0000.04018.12
5.6.170.0030.04318.11
5.6.160.0030.04018.19
5.6.150.0000.04318.17
5.6.140.0030.03718.18
5.6.130.0030.04018.17
5.6.120.0070.04018.18
5.6.110.0030.04018.22
5.6.100.0170.03718.07
5.6.90.0070.03718.19
5.6.80.0030.07717.59
5.6.70.0030.04017.50
5.6.60.0070.07017.52
5.6.50.0000.04317.49
5.6.40.0070.07717.51
5.6.30.0070.06017.57
5.6.20.0070.06717.55
5.6.10.0270.06017.48
5.6.00.0070.06017.46
5.5.350.0230.08320.42
5.5.340.0000.04017.92
5.5.330.0070.03717.91
5.5.320.0070.04017.88
5.5.310.0000.07317.97
5.5.300.0070.03718.02
5.5.290.0100.03317.95
5.5.280.0070.03717.88
5.5.270.0030.04017.97
5.5.260.0030.04017.96
5.5.250.0000.04017.75
5.5.240.0100.06717.29
5.5.230.0070.06717.32
5.5.220.0070.03717.28
5.5.210.0000.04317.32
5.5.200.0030.04717.35
5.5.190.0100.07317.27
5.5.180.0130.07717.33
5.5.160.0070.08017.27
5.5.150.0170.06017.38
5.5.140.0030.07017.26
5.5.130.0130.07017.32
5.5.120.0000.07317.37
5.5.110.0030.08017.27
5.5.100.0070.07717.20
5.5.90.0000.06317.22
5.5.80.0100.05717.14
5.5.70.0070.04317.25
5.5.60.0070.05017.22
5.5.50.0030.08317.22
5.5.40.0070.05717.27
5.5.30.0030.05317.21
5.5.20.0070.04317.15
5.5.10.0070.07717.19
5.5.00.0170.07717.21
5.4.450.0000.04719.32
5.4.440.0030.04019.45
5.4.430.0030.04319.29
5.4.420.0000.04019.30
5.4.410.0070.03319.22
5.4.400.0030.03718.97
5.4.390.0030.07019.09
5.4.380.0070.03718.98
5.4.370.0100.04319.05
5.4.360.0070.07018.98
5.4.350.0000.05719.07
5.4.340.0100.08019.04
5.4.320.0030.05019.04
5.4.310.0030.07018.99
5.4.300.0030.05718.98
5.4.290.0070.06719.20
5.4.280.0100.07719.03
5.4.270.0100.06718.98
5.4.260.0030.05719.20
5.4.250.0030.08019.02
5.4.240.0130.05718.88
5.4.230.0030.04019.11
5.4.220.0170.07319.12
5.4.210.0070.08018.95
5.4.200.0070.07318.90
5.4.190.0070.05718.97
5.4.180.0030.04318.97
5.4.170.0000.07019.02
5.4.160.0030.05019.09
5.4.150.0130.07018.93
5.4.140.0030.04716.33
5.4.130.0130.05316.29
5.4.120.0100.06316.45
5.4.110.0070.07016.20
5.4.100.0130.04016.57
5.4.90.0030.04316.29
5.4.80.0070.05316.27
5.4.70.0030.08016.28
5.4.60.0200.06016.25
5.4.50.0100.06716.29
5.4.40.0170.06316.31
5.4.30.0100.06716.40
5.4.20.0100.07016.33
5.4.10.0100.07016.38
5.4.00.0070.06015.62
5.3.290.0030.06014.48
5.3.280.0030.04014.45
5.3.270.0070.07714.58
5.3.260.0000.05314.46
5.3.250.0100.07314.46
5.3.240.0070.07314.58
5.3.230.0130.07314.55
5.3.220.0030.07714.51
5.3.210.0100.07714.52
5.3.200.0070.07014.52
5.3.190.0000.05014.53
5.3.180.0100.04314.57
5.3.170.0000.08314.34
5.3.160.0070.06314.51
5.3.150.0130.06014.53
5.3.140.0130.06314.50
5.3.130.0030.08314.47
5.3.120.0000.05014.40
5.3.110.0070.06314.48
5.3.100.0100.07013.89
5.3.90.0070.06013.83
5.3.80.0070.04013.78
5.3.70.0100.06313.79
5.3.60.0030.04313.95
5.3.50.0030.03713.87
5.3.40.0030.07713.91
5.3.30.0030.05313.88
5.3.20.0100.07313.62
5.3.10.0030.05013.62
5.3.00.0100.05713.59
5.2.170.0000.05310.97
5.2.160.0000.04011.11
5.2.150.0000.04011.12
5.2.140.0070.03011.29
5.2.130.0070.05010.92
5.2.120.0130.04011.05
5.2.110.0030.05711.24
5.2.100.0030.03711.06
5.2.90.0030.03311.01
5.2.80.0100.06010.91
5.2.70.0130.03711.07
5.2.60.0130.05311.19
5.2.50.0130.05010.91
5.2.40.0000.04710.97
5.2.30.0030.06011.00
5.2.20.0100.05710.96
5.2.10.0070.06010.80
5.2.00.0070.05710.70
5.1.60.0130.0479.93
5.1.50.0070.0579.93
5.1.40.0070.0509.93
5.1.30.0000.05310.36
5.1.20.0070.05310.33
5.1.10.0100.04710.05
5.1.00.0000.06010.05
5.0.50.0030.0378.57
5.0.40.0070.0408.38
5.0.30.0070.0608.19
5.0.20.0000.0338.23
5.0.10.0000.0408.07
5.0.00.0130.0578.24
4.4.90.0030.0307.64
4.4.80.0070.0237.64
4.4.70.0030.0337.64
4.4.60.0000.0407.64
4.4.50.0030.0337.64
4.4.40.0000.0577.64
4.4.30.0030.0377.64
4.4.20.0030.0337.64
4.4.10.0070.0337.64
4.4.00.0070.0537.64
4.3.110.0000.0377.64
4.3.100.0000.0407.64
4.3.90.0070.0307.64
4.3.80.0030.0437.64
4.3.70.0070.0207.64
4.3.60.0100.0307.64
4.3.50.0070.0237.64
4.3.40.0030.0507.64
4.3.30.0000.0307.64
4.3.20.0000.0407.64
4.3.10.0030.0377.64
4.3.00.0000.0307.64

preferences:
36.67 ms | 401 KiB | 5 Q