3v4l.org

run code in 300+ PHP versions simultaneously
<?php // int isn't a reserved word, right? // So this should work fine! const int = 7; // Let's try using it! echo($int); /* Wait, what? A parse error? Why, you might ask? (int) is a special case in the lexer. Turns out that casts are lexed specially. Why? Probably to stop the type names being reserved words... that worked out spectacularly, didn't it? The best bit, though, is that this has been around since PHP 3, so it's most likely the fault of Zeev Suraski or Andi Gutmans. Good job. */

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.0130.00316.88
8.3.50.0080.00922.05
8.3.40.0040.01118.81
8.3.30.0140.00019.00
8.3.20.0050.00220.31
8.3.10.0000.00821.77
8.3.00.0000.00817.79
8.2.180.0100.01016.75
8.2.170.0050.00922.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0040.00420.91
8.2.110.0070.00319.18
8.2.100.0000.01117.91
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0050.00317.78
8.2.50.0080.00018.07
8.2.40.0000.00718.22
8.2.30.0080.00318.23
8.2.20.0080.00017.66
8.2.10.0050.00317.98
8.2.00.0000.00717.64
8.1.280.0070.00725.92
8.1.270.0000.00923.92
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00619.15
8.1.230.0000.01217.42
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0050.00517.00
8.1.190.0050.00317.10
8.1.180.0000.00918.10
8.1.170.0030.00518.59
8.1.160.0030.00321.92
8.1.150.0040.00418.80
8.1.140.0050.00317.47
8.1.130.0000.00717.69
8.1.120.0070.00017.32
8.1.110.0040.00417.27
8.1.100.0000.00717.38
8.1.90.0070.00017.30
8.1.80.0040.00417.30
8.1.70.0070.00017.25
8.1.60.0050.00217.48
8.1.50.0030.00517.48
8.1.40.0040.00417.50
8.1.30.0080.00017.49
8.1.20.0040.00417.49
8.1.10.0040.00417.42
8.1.00.0040.00417.33
8.0.300.0000.00718.77
8.0.290.0050.00216.63
8.0.280.0040.00418.43
8.0.270.0040.00417.03
8.0.260.0030.00317.18
8.0.250.0030.00316.95
8.0.240.0000.00716.96
8.0.230.0000.00716.94
8.0.220.0000.00716.92
8.0.210.0060.00016.88
8.0.200.0000.00616.91
8.0.190.0000.00816.86
8.0.180.0030.00316.81
8.0.170.0070.00016.89
8.0.160.0070.00016.95
8.0.150.0030.00616.86
8.0.140.0030.00716.70
8.0.130.0030.00313.29
8.0.120.0040.00416.84
8.0.110.0000.00816.84
8.0.100.0030.00616.99
8.0.90.0000.00716.84
8.0.80.0090.00616.75
8.0.70.0080.00016.95
8.0.60.0000.00716.82
8.0.50.0040.00416.65
8.0.30.0140.00417.03
8.0.20.0100.01017.40
8.0.10.0080.00017.00
8.0.00.0040.01516.88
7.4.330.0050.00015.00
7.4.320.0060.00016.52
7.4.300.0030.00316.52
7.4.290.0000.00716.57
7.4.280.0040.00416.52
7.4.270.0030.00316.50
7.4.260.0030.00316.41
7.4.250.0050.00216.40
7.4.240.0040.00416.45
7.4.230.0070.00016.54
7.4.220.0170.00916.55
7.4.210.0030.01216.39
7.4.200.0040.00416.50
7.4.160.0060.01216.55
7.4.150.0130.00417.40
7.4.140.0080.00917.86
7.4.130.0090.00716.44
7.4.120.0130.00316.39
7.4.110.0140.00316.46
7.4.100.0100.00616.44
7.4.90.0130.00416.35
7.4.80.0040.01719.39
7.4.70.0070.01016.46
7.4.60.0070.01416.51
7.4.50.0030.00316.44
7.4.40.0070.01016.29
7.4.30.0120.00416.45
7.4.00.0000.01415.00
7.3.330.0060.00013.15
7.3.320.0050.00013.29
7.3.310.0000.00616.15
7.3.300.0000.00716.36
7.3.290.0120.00316.34
7.3.280.0060.01016.38
7.3.270.0100.00717.40
7.3.260.0100.01016.46
7.3.250.0130.00516.39
7.3.240.0100.00716.62
7.3.230.0180.00016.46
7.3.210.0120.00916.57
7.3.200.0070.01019.39
7.3.190.0060.01216.37
7.3.180.0030.01316.44
7.3.170.0100.00716.53
7.3.160.0120.00916.41
7.3.120.0070.00914.74
7.3.110.0140.00414.79
7.3.100.0030.01315.01
7.3.90.0040.00714.63
7.3.80.0000.01114.76
7.3.70.0030.00614.69
7.3.60.0100.00714.84
7.3.50.0070.00714.71
7.3.40.0040.00714.73
7.3.30.0000.01314.53
7.3.20.0140.00016.36
7.3.10.0100.00716.66
7.3.00.0030.01016.71
7.2.330.0090.01316.34
7.2.320.0060.01316.34
7.2.310.0090.00616.62
7.2.300.0100.01316.57
7.2.290.0050.01016.55
7.2.250.0040.01115.11
7.2.240.0080.01215.00
7.2.230.0080.00814.80
7.2.220.0000.01415.15
7.2.210.0030.01314.53
7.2.200.0060.00614.75
7.2.190.0170.00314.99
7.2.180.0120.00614.95
7.2.170.0120.00314.91
7.1.330.0090.00615.88
7.1.320.0070.00315.61
7.1.310.0030.00615.63
7.1.300.0030.01515.66
7.1.290.0060.00315.83
7.1.280.0100.00715.55
7.1.270.0090.00615.78
7.1.260.0040.00415.41
7.1.70.0000.00716.83
7.1.60.0040.01116.80
7.1.50.0100.01316.57
7.1.00.0030.07722.32
7.0.200.0000.01716.88
7.0.140.0030.07321.98
7.0.60.0100.07019.97
7.0.50.0030.08017.82
7.0.40.0130.04320.04
7.0.30.0170.05020.06
7.0.20.0070.05019.99
7.0.10.0030.08720.01
7.0.00.0070.04720.03
5.6.280.0100.06721.07
5.6.210.0070.05720.44
5.6.200.0030.05018.22
5.6.190.0070.06320.30
5.6.180.0270.03720.32
5.6.170.0270.08020.71
5.6.160.0030.04020.51
5.6.150.0070.08318.12
5.6.140.0000.05318.14
5.6.130.0130.07318.15
5.6.120.0070.05721.09
5.6.110.0170.07721.03
5.6.100.0070.07721.00
5.6.90.0030.05020.96
5.6.80.0100.03320.46
5.5.350.0270.07720.46
5.5.340.0200.04017.91
5.5.330.0070.06720.23
5.5.320.0230.04320.20
5.5.310.0300.05720.27
5.5.300.0070.08018.02
5.5.290.0030.08017.95
5.5.280.0130.07320.96
5.5.270.0130.07720.79
5.5.260.0000.08320.86
5.5.250.0130.07020.54
5.5.240.0030.06320.25
5.4.450.0630.05319.13
5.4.440.0100.05719.41
5.4.430.0830.05719.27
5.4.420.0770.05719.27
5.4.410.0100.05318.79
5.4.400.0200.06018.72
5.4.390.0430.05718.44
5.4.380.0200.06018.74
5.4.370.0130.03318.73
5.4.360.0100.03718.61
5.4.350.0100.03511.97
5.4.340.0000.04711.96
5.4.320.0110.03512.46
5.4.310.0070.03812.45
5.4.300.0060.03612.45
5.4.290.0060.03812.45
5.4.280.0080.03512.35
5.4.270.0110.04712.35
5.4.260.0070.04612.35
5.4.250.0050.04012.35
5.4.240.0080.03412.34
5.4.230.0070.03612.34
5.4.220.0070.03412.34
5.4.210.0050.03612.34
5.4.200.0010.04312.34
5.4.190.0060.03712.34
5.4.180.0060.03812.34
5.4.170.0030.03912.34
5.4.160.0030.03812.34
5.4.150.0050.03712.34
5.4.140.0060.04212.02
5.4.130.0070.03512.01
5.4.120.0070.03411.97
5.4.110.0060.03611.96
5.4.100.0060.03511.96
5.4.90.0060.03811.96
5.4.80.0080.03511.96
5.4.70.0100.03111.96
5.4.60.0040.03911.96
5.4.50.0040.04111.96
5.4.40.0040.03711.95
5.4.30.0080.03511.95
5.4.20.0080.03511.95
5.4.10.0070.04111.95
5.4.00.0080.03411.44
5.3.290.0050.04112.80
5.3.280.0110.03512.71
5.3.270.0060.03912.72
5.3.260.0080.04712.72
5.3.250.0080.03512.72
5.3.240.0100.04412.72
5.3.230.0070.03912.71
5.3.220.0060.03812.68
5.3.210.0080.03812.68
5.3.200.0100.04012.68
5.3.190.0050.04212.67
5.3.180.0070.03812.67
5.3.170.0030.04012.66
5.3.160.0080.03812.67
5.3.150.0070.03612.67
5.3.140.0080.03612.66
5.3.130.0080.03712.66
5.3.120.0060.04012.66
5.3.110.0070.04612.66
5.3.100.0090.03312.12
5.3.90.0060.03812.08
5.3.80.0090.03312.07
5.3.70.0100.03312.07
5.3.60.0050.03712.06
5.3.50.0080.03312.00
5.3.40.0060.03812.00
5.3.30.0050.03511.93
5.3.20.0090.03211.72
5.3.10.0060.03511.69
5.3.00.0040.03811.67
5.2.170.0050.0309.18
5.2.160.0050.0289.18
5.2.150.0070.0339.18
5.2.140.0070.0319.18
5.2.130.0050.0289.14
5.2.120.0110.0219.14
5.2.110.0050.0289.14
5.2.100.0060.0279.14
5.2.90.0040.0309.14
5.2.80.0060.0309.14
5.2.70.0070.0289.14
5.2.60.0070.0279.09
5.2.50.0040.0309.06
5.2.40.0030.0299.03
5.2.30.0040.0309.01
5.2.20.0030.0309.00
5.2.10.0050.0288.93
5.2.00.0040.0308.79
5.1.60.0050.0238.07
5.1.50.0080.0338.06
5.1.40.0040.0278.05
5.1.30.0040.0328.40
5.1.20.0020.0328.42
5.1.10.0050.0258.14
5.1.00.0050.0258.14
5.0.50.0030.0216.62
5.0.40.0030.0196.47
5.0.30.0070.0306.30
5.0.20.0020.0216.26
5.0.10.0040.0196.24
5.0.00.0020.0316.23
4.4.90.0020.0164.78
4.4.80.0030.0144.76
4.4.70.0030.0154.75
4.4.60.0070.0124.75
4.4.50.0040.0194.77
4.4.40.0050.0234.71
4.4.30.0030.0194.76
4.4.20.0020.0194.84
4.4.10.0020.0154.85
4.4.00.0030.0244.76
4.3.110.0030.0154.67
4.3.100.0040.0134.66
4.3.90.0040.0134.64
4.3.80.0040.0224.59
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0010.0164.63
4.3.40.0020.0254.54
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0010.0163.22
4.3.00.0100.0237.21

preferences:
44.67 ms | 401 KiB | 5 Q