3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("foo", "bar"); echo foo; echo "\n"; define("TRUE", false); if (TRUE) { echo "TRUE"; } else { echo "FALSE"; }

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.0.0rc20.0120.00616.80
8.0.0rc10.0030.01416.53
8.0.0beta30.0150.00716.53
8.0.0beta10.0060.01316.60
8.0.0alpha30.0130.01416.68
8.0.0alpha20.0090.00916.53
8.0.0alpha10.0150.00416.57
7.4.120.0080.01116.36
7.4.110.0030.01316.52
7.4.100.0110.00616.45
7.4.90.0060.01316.32
7.4.80.0090.00919.37
7.4.70.0090.01216.46
7.4.60.0030.01316.18
7.4.50.0000.00716.53
7.4.40.0060.01222.27
7.4.30.0150.00616.45
7.4.10.0000.01414.99
7.4.00.0030.01014.90
7.3.230.0120.00916.39
7.3.210.0090.00916.33
7.3.200.0070.01419.39
7.3.190.0120.00616.37
7.3.180.0090.00616.39
7.3.170.0080.00816.27
7.3.160.0070.01016.43
7.3.130.0040.01514.52
7.3.120.0030.01314.64
7.3.110.0090.00614.62
7.3.100.0040.01114.71
7.3.90.0090.00614.42
7.3.80.0070.00714.82
7.3.70.0110.00414.54
7.3.60.0000.01614.84
7.3.50.0120.00314.78
7.3.40.0110.00714.57
7.3.30.0110.00714.54
7.3.20.0060.00616.40
7.3.10.0120.00016.51
7.3.00.0060.00616.55
7.2.330.0100.01016.39
7.2.320.0100.01316.50
7.2.310.0120.00916.58
7.2.300.0030.01316.71
7.2.290.0090.01116.42
7.2.260.0100.00614.50
7.2.250.0060.01214.88
7.2.240.0070.00715.09
7.2.230.0160.00015.19
7.2.220.0070.01314.97
7.2.210.0070.00714.79
7.2.200.0100.00714.75
7.2.190.0070.00714.84
7.2.180.0090.00614.58
7.2.170.0080.00814.88
7.2.160.0060.00914.95
7.2.150.0070.00417.05
7.2.140.0030.01016.54
7.2.130.0030.01016.73
7.2.120.0080.00416.82
7.2.110.0070.00416.59
7.2.100.0040.01116.95
7.2.90.0120.00616.90
7.2.80.0030.00916.82
7.2.70.0080.00317.02
7.2.60.0030.01216.83
7.2.50.0150.00016.89
7.2.40.0040.00716.46
7.2.30.0070.01016.97
7.2.20.0000.01216.71
7.2.10.0060.00916.87
7.2.00.0050.00717.89
7.1.330.0030.01315.80
7.1.320.0060.00815.46
7.1.310.0040.00815.64
7.1.300.0070.00715.65
7.1.290.0070.00715.48
7.1.280.0070.01015.39
7.1.270.0070.00415.75
7.1.260.0060.00615.88
7.1.250.0030.01015.72
7.1.240.0030.00715.42
7.1.230.0100.00315.73
7.1.220.0000.01515.72
7.1.210.0040.01415.63
7.1.200.0000.01215.75
7.1.190.0030.00915.52
7.1.180.0000.00915.90
7.1.170.0050.00615.86
7.1.160.0050.00315.56
7.1.150.0030.01015.71
7.1.140.0060.00615.66
7.1.130.0000.01215.67
7.1.120.0070.00715.55
7.1.110.0030.00715.42
7.1.100.0080.00516.54
7.1.90.0030.00615.61
7.1.80.0030.00915.78
7.1.70.0020.00916.35
7.1.60.0070.01217.38
7.1.50.0030.01416.04
7.1.40.0060.00915.91
7.1.30.0040.00715.79
7.1.20.0140.00315.65
7.1.10.0100.00315.41
7.1.00.0060.02218.92
7.0.330.0030.01315.39
7.0.320.0070.01015.33
7.0.310.0070.00715.50
7.0.300.0130.00315.43
7.0.290.0000.01215.27
7.0.280.0090.00015.45
7.0.270.0030.01015.38
7.0.260.0000.00915.35
7.0.250.0070.00315.46
7.0.240.0060.00915.33
7.0.230.0110.00415.25
7.0.220.0030.00915.39
7.0.210.0060.00615.08
7.0.200.0040.00615.95
7.0.190.0040.01115.26
7.0.180.0090.00315.34
7.0.170.0000.01315.32
7.0.160.0060.00315.47
7.0.150.0030.00915.03
7.0.140.0020.04318.68
7.0.130.0100.00315.37
7.0.120.0000.00915.46
7.0.110.0000.00915.21
7.0.100.0090.00615.36
7.0.90.0000.01615.19
7.0.80.0040.00815.44
7.0.70.0080.00615.30
7.0.60.0070.04317.59
7.0.50.0050.02516.61
7.0.40.0100.02515.51
7.0.30.0080.02715.47
7.0.20.0050.04315.55
7.0.10.0080.02515.63
7.0.00.0070.04315.56
5.6.400.0030.00714.26
5.6.390.0080.00314.57
5.6.380.0110.00414.01
5.6.370.0070.00314.51
5.6.360.0150.00314.09
5.6.350.0000.01313.76
5.6.340.0030.01014.27
5.6.330.0070.00714.58
5.6.320.0040.00714.55
5.6.310.0040.01114.14
5.6.300.0040.00814.31
5.6.290.0060.00613.84
5.6.280.0110.03617.63
5.6.270.0100.01014.29
5.6.260.0040.00814.27
5.6.250.0070.01014.16
5.6.240.0000.01414.49
5.6.230.0030.01014.06
5.6.220.0030.01114.16
5.6.210.0100.04017.38
5.6.200.0030.02716.19
5.6.190.0070.04316.27
5.6.180.0020.04016.26
5.6.170.0070.03516.18
5.6.160.0050.04816.29
5.6.150.0110.04016.16
5.6.140.0120.03716.29
5.6.130.0060.04516.21
5.6.120.0050.04716.21
5.6.110.0070.03716.23
5.6.100.0090.04516.19
5.6.90.0070.04216.28
5.6.80.0070.02315.86
5.6.70.0070.02415.82
5.6.60.0020.02415.81
5.6.50.0100.04015.90
5.6.40.0080.04215.74
5.6.30.0070.03915.70
5.6.20.0080.04015.80
5.6.10.0100.03815.82
5.6.00.0070.04015.79
5.5.380.0080.00413.77
5.5.370.0030.01013.92
5.5.360.0030.01014.36
5.5.350.0130.02917.27
5.5.340.0050.02715.97
5.5.330.0050.04215.97
5.5.320.0090.03016.16
5.5.310.0070.03615.90
5.5.300.0040.03816.10
5.5.290.0080.04515.85
5.5.280.0070.04316.02
5.5.270.0030.04715.94
5.5.260.0100.03016.06
5.5.250.0030.02815.87
5.5.240.0070.02615.50
5.5.230.0120.02015.78
5.5.220.0130.01515.68
5.5.210.0050.02715.71
5.5.200.0110.03815.55
5.5.190.0100.03215.69
5.5.180.0050.02515.68
5.5.170.0030.00714.15
5.5.160.0060.04215.63
5.5.150.0050.02515.67
5.5.140.0120.01615.69
5.5.130.0110.03815.80
5.5.120.0050.03515.71
5.5.110.0060.02515.73
5.5.100.0040.02715.69
5.5.90.0040.04115.63
5.5.80.0010.02415.70
5.5.70.0040.03115.67
5.5.60.0060.02615.73
5.5.50.0060.01815.68
5.5.40.0060.03115.43
5.5.30.0060.02215.57
5.5.20.0100.03315.67
5.5.10.0060.02515.73
5.5.00.0060.04115.59
5.4.450.0020.04715.54
5.4.440.0090.04015.54
5.4.430.0020.04615.51
5.4.420.0030.04515.59
5.4.410.0050.04315.48
5.4.400.0030.02515.33
5.4.390.0050.02715.37
5.4.380.0030.02115.43
5.4.370.0070.01915.40
5.4.360.0120.03215.40
5.4.350.0040.02415.40
5.4.340.0050.03015.44
5.4.330.0030.00711.76
5.4.320.0120.03415.33
5.4.310.0070.03815.37
5.4.300.0080.02515.44
5.4.290.0080.03715.35
5.4.280.0080.02615.44
5.4.270.0070.03515.44
5.4.260.0070.02815.37
5.4.250.0030.02715.37
5.4.240.0050.04315.37
5.4.230.0020.02615.29
5.4.220.0110.02515.33
5.4.210.0060.03815.36
5.4.200.0050.02515.29
5.4.190.0080.03715.42
5.4.180.0040.02515.32
5.4.170.0030.03815.40
5.4.160.0080.03515.38
5.4.150.0030.04015.37
5.4.140.0030.02214.02
5.4.130.0020.02114.12
5.4.120.0040.02114.00
5.4.110.0020.04514.03
5.4.100.0020.02914.09
5.4.90.0030.02714.03
5.4.80.0020.02214.02
5.4.70.0020.02214.09
5.4.60.0070.03613.95
5.4.50.0070.03814.06
5.4.40.0050.03714.04
5.4.30.0060.03613.99
5.4.20.0040.04114.07
5.4.10.0090.02513.98
5.4.00.0100.02213.73
5.3.290.0020.02713.21
5.3.280.0060.04013.17
5.3.270.0000.02313.15
5.3.260.0060.02513.09
5.3.250.0020.02413.17
5.3.240.0050.01813.17
5.3.230.0030.02613.15
5.3.220.0030.04113.14
5.3.210.0050.03713.15
5.3.200.0060.02813.13
5.3.190.0040.02013.05
5.3.180.0100.02013.14
5.3.170.0090.01613.15
5.3.160.0020.03513.13
5.3.150.0070.04013.13
5.3.140.0030.04213.08
5.3.130.0080.04013.11
5.3.120.0050.04113.08
5.3.110.0020.04413.13
5.3.100.0020.02112.88
5.3.90.0080.03512.87
5.3.80.0080.03312.76
5.3.70.0080.02512.81
5.3.60.0080.02012.84
5.3.50.0030.02012.83
5.3.40.0050.02412.89
5.3.30.0020.03012.72
5.3.20.0020.02612.71
5.3.10.0060.02812.59
5.3.00.0000.02412.68
5.2.170.0070.04711.09
5.2.160.0070.05311.13
5.2.150.0030.03011.14
5.2.140.0100.03311.06
5.2.130.0030.02711.09
5.2.120.0130.05011.02
5.2.110.0070.06011.04
5.2.100.0000.04311.09
5.2.90.0030.02710.92
5.2.80.0100.05711.06
5.2.70.0070.05711.12
5.2.60.0070.05711.08
5.2.50.0030.03011.02
5.2.40.0070.02710.91
5.2.30.0070.04010.91
5.2.20.0000.03311.09
5.2.10.0100.02710.66
5.2.00.0000.03010.73
5.1.60.0070.04710.05
5.1.50.0000.05010.01
5.1.40.0070.0509.93
5.1.30.0030.04710.27
5.1.20.0030.05710.36
5.1.10.0000.05310.03
5.1.00.0030.05310.04
5.0.50.0000.0208.51
5.0.40.0070.0438.35
5.0.30.0170.0508.35
5.0.20.0030.0308.35
5.0.10.0030.0408.35
5.0.00.0000.0538.35
4.4.90.0030.0238.35
4.4.80.0000.0178.35
4.4.70.0070.0138.35
4.4.60.0030.0378.35
4.4.50.0030.0308.35
4.4.40.0000.0238.35
4.4.30.0000.0308.35
4.4.20.0000.0208.35
4.4.10.0030.0378.35
4.4.00.0030.0338.35
4.3.110.0000.0208.35
4.3.100.0030.0338.35
4.3.90.0100.0238.35
4.3.80.0070.0438.35
4.3.70.0070.0278.35
4.3.60.0000.0378.35
4.3.50.0030.0278.35
4.3.40.0070.0378.35
4.3.30.0000.0278.35
4.3.20.0030.0178.35
4.3.10.0000.0238.35
4.3.00.0000.0138.35