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! var_dump( $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.0000.01516.75
8.3.50.0150.00721.96
8.3.40.0070.01418.59
8.3.30.0140.00018.84
8.3.20.0000.00820.26
8.3.10.0000.00823.61
8.3.00.0040.00420.89
8.2.180.0110.00416.38
8.2.170.0140.00322.96
8.2.160.0070.00720.47
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0140.00426.16
8.2.120.0040.00420.75
8.2.110.0030.00622.02
8.2.100.0110.00417.59
8.2.90.0030.00519.04
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0030.00617.89
8.2.50.0040.00418.07
8.2.40.0000.00718.22
8.2.30.0040.00718.18
8.2.20.0040.00417.64
8.2.10.0000.00718.03
8.2.00.0030.00517.59
8.1.280.0210.00025.92
8.1.270.0080.00023.95
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00023.75
8.1.230.0040.00719.01
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0070.00317.10
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0030.00618.46
8.1.160.0060.00322.00
8.1.150.0020.00518.60
8.1.140.0070.00017.28
8.1.130.0030.00317.79
8.1.120.0000.00717.39
8.1.110.0030.00317.36
8.1.100.0060.00317.32
8.1.90.0030.00517.38
8.1.80.0050.00317.31
8.1.70.0070.00017.29
8.1.60.0060.00317.47
8.1.50.0000.00917.41
8.1.40.0040.00417.51
8.1.30.0070.00317.48
8.1.20.0000.00817.40
8.1.10.0040.00417.37
8.1.00.0040.00417.23
8.0.300.0000.00818.77
8.0.290.0080.00016.63
8.0.280.0070.00018.14
8.0.270.0070.00017.03
8.0.260.0030.00317.04
8.0.250.0030.00316.82
8.0.240.0070.00316.79
8.0.230.0030.00316.94
8.0.220.0030.00316.91
8.0.210.0050.00216.88
8.0.200.0060.00016.93
8.0.190.0000.00816.78
8.0.180.0000.00716.79
8.0.170.0000.00816.84
8.0.160.0070.00016.75
8.0.150.0030.00716.82
8.0.140.0000.00816.80
8.0.130.0030.00313.27
8.0.120.0000.00816.86
8.0.110.0000.00716.81
8.0.100.0030.00316.74
8.0.90.0030.00316.76
8.0.80.0030.01216.91
8.0.70.0040.00416.87
8.0.60.0000.00716.67
8.0.50.0070.00016.81
8.0.30.0120.00816.75
8.0.20.0130.01317.40
8.0.10.0000.00716.97
8.0.00.0100.00816.74
7.4.330.0000.00615.09
7.4.320.0000.00616.46
7.4.300.0040.00416.43
7.4.290.0100.00016.48
7.4.280.0000.01016.46
7.4.270.0030.00516.54
7.4.260.0030.00616.40
7.4.250.0050.00316.49
7.4.240.0030.00416.47
7.4.230.0040.00416.47
7.4.220.0180.00716.50
7.4.210.0070.01016.59
7.4.200.0030.00316.27
7.4.160.0080.00816.43
7.4.150.0080.00817.40
7.4.140.0120.00817.86
7.4.130.0060.01016.47
7.4.120.0130.00616.56
7.4.110.0100.00716.35
7.4.100.0100.01016.43
7.4.90.0100.00616.58
7.4.80.0100.00719.39
7.4.70.0100.00616.51
7.4.60.0100.01016.39
7.4.50.0060.00316.59
7.4.40.0100.00616.64
7.4.30.0060.00916.51
7.4.00.0030.01415.00
7.3.330.0050.00013.12
7.3.320.0050.00013.09
7.3.310.0050.00216.30
7.3.300.0030.00316.27
7.3.290.0140.00016.30
7.3.280.0100.00916.21
7.3.270.0060.01317.40
7.3.260.0100.01016.46
7.3.250.0070.01316.24
7.3.240.0000.02116.38
7.3.230.0120.00616.40
7.3.210.0060.01116.50
7.3.200.0060.01319.39
7.3.190.0100.01016.51
7.3.180.0090.01216.23
7.3.170.0030.01216.27
7.3.160.0060.01216.31
7.3.120.0030.00814.96
7.3.10.0170.00315.94
7.3.00.0150.00316.57
7.2.330.0030.01316.59
7.2.320.0180.00416.31
7.2.310.0170.00016.23
7.2.300.0100.00616.29
7.2.290.0140.00416.50
7.2.130.0090.00916.57
7.2.120.0190.00016.80
7.2.110.0150.00016.20
7.2.100.0110.00816.43
7.2.90.0140.00816.37
7.2.80.0080.01116.31
7.2.70.0130.00616.78
7.2.60.0130.00616.01
7.2.50.0200.00316.25
7.2.40.0140.00316.45
7.2.30.0190.00416.16
7.2.20.0100.00716.05
7.2.10.0090.00616.00
7.2.00.0110.00716.38
7.1.250.0110.00415.54
7.1.70.0030.00717.04
7.1.60.0140.01119.70
7.1.50.0110.00416.89
7.1.00.0000.08022.36
7.0.200.0220.00314.79
7.0.140.0130.06322.04
7.0.60.0030.04319.92
7.0.50.0030.04317.82
7.0.40.0000.09320.24
7.0.30.0270.03020.11
7.0.20.0300.06020.00
7.0.10.0300.05720.17
7.0.00.0030.07720.00
5.6.280.0070.07021.07
5.6.210.0100.06720.69
5.6.200.0000.06718.12
5.6.190.0130.07320.39
5.6.180.0070.08020.39
5.6.170.0470.07320.52
5.6.160.0070.06720.53
5.6.150.0070.07318.16
5.6.140.0070.08018.11
5.6.130.0070.07718.15
5.6.120.0000.04720.99
5.6.110.0030.04321.11
5.6.100.0130.07320.95
5.6.90.0070.08320.98
5.6.80.0130.03720.53
5.6.70.0300.06320.27
5.5.350.0030.03320.38
5.5.340.0170.06718.02
5.5.330.0130.05720.12
5.5.320.0300.04720.31
5.5.310.0200.04320.13
5.5.300.0100.07717.89
5.5.290.0070.05018.00
5.5.280.0270.06720.88
5.5.270.0300.06320.66
5.5.260.0130.07720.88
5.5.250.0100.08320.68
5.5.240.0230.06720.34
5.4.450.0230.04329.52
5.4.440.0430.04028.29
5.4.430.0070.04328.29
5.4.420.0230.04728.29
5.4.410.0400.04328.29
5.4.400.0630.03328.29
5.4.390.0330.04328.29
5.4.380.0130.05718.65
5.4.370.0130.05018.64
5.4.360.0130.05018.56
5.4.350.0130.05718.51
5.4.340.0170.05018.60
5.4.320.0110.04012.45
5.4.310.0120.04212.45
5.4.300.0080.03512.45
5.4.290.0080.03612.45
5.4.280.0080.03412.35
5.4.270.0030.04312.35
5.4.260.0060.03912.35
5.4.250.0070.03812.34
5.4.240.0090.04312.35
5.4.230.0060.04312.34
5.4.220.0030.03912.34
5.4.210.0070.03412.34
5.4.200.0070.03812.34
5.4.190.0050.03912.33
5.4.180.0120.03712.34
5.4.170.0100.03712.34
5.4.160.0060.03912.34
5.4.150.0110.04012.34
5.4.140.0100.04412.02
5.4.130.0070.03912.01
5.4.120.0070.04211.96
5.4.110.0080.03711.96
5.4.100.0060.03711.96
5.4.90.0080.03911.96
5.4.80.0080.03711.96
5.4.70.0050.03911.96
5.4.60.0060.04011.96
5.4.50.0080.03611.96
5.4.40.0090.03611.95
5.4.30.0050.04011.95
5.4.20.0080.03911.95
5.4.10.0070.03611.95
5.4.00.0070.03811.43
5.3.290.0060.04912.80
5.3.280.0100.03612.71
5.3.270.0080.05512.73
5.3.260.0120.04812.72
5.3.250.0090.05112.72
5.3.240.0130.05512.72
5.3.230.0060.05412.70
5.3.220.0090.05012.68
5.3.210.0070.05412.68
5.3.200.0110.04812.68
5.3.190.0100.04612.68
5.3.180.0060.05112.67
5.3.170.0090.04812.67
5.3.160.0090.04912.67
5.3.150.0080.05112.67
5.3.140.0070.05112.66
5.3.130.0060.04812.66
5.3.120.0080.04012.66
5.3.110.0070.03912.66
5.3.100.0060.05112.12
5.3.90.0040.04612.09
5.3.80.0040.03812.07
5.3.70.0060.03612.07
5.3.60.0040.03812.06
5.3.50.0030.03912.00
5.3.40.0060.03612.00
5.3.30.0050.03611.94
5.3.20.0040.03811.72
5.3.10.0060.03511.69
5.3.00.0060.03811.67
5.2.170.0030.0329.18
5.2.160.0070.0279.18
5.2.150.0030.0339.18
5.2.140.0060.0319.18
5.2.130.0030.0319.14
5.2.120.0040.0299.14
5.2.110.0050.0299.15
5.2.100.0060.0289.14
5.2.90.0050.0309.14
5.2.80.0040.0329.14
5.2.70.0070.0289.14
5.2.60.0050.0309.09
5.2.50.0040.0329.05
5.2.40.0050.0319.03
5.2.30.0060.0329.01
5.2.20.0060.0339.01
5.2.10.0050.0318.93
5.2.00.0030.0328.79
5.1.60.0020.0268.07
5.1.50.0040.0248.06
5.1.40.0040.0258.05
5.1.30.0040.0288.39
5.1.20.0050.0278.42
5.1.10.0060.0288.14
5.1.00.0050.0298.14
5.0.50.0060.0236.62
5.0.40.0070.0196.47
5.0.30.0040.0326.29
5.0.20.0030.0266.26
5.0.10.0040.0256.24
5.0.00.0050.0306.23
4.4.90.0040.0154.78
4.4.80.0030.0154.75
4.4.70.0010.0174.76
4.4.60.0050.0134.76
4.4.50.0030.0194.77
4.4.40.0030.0284.71
4.4.30.0060.0174.76
4.4.20.0020.0234.84
4.4.10.0040.0194.85
4.4.00.0030.0314.76
4.3.110.0020.0224.67
4.3.100.0050.0144.67
4.3.90.0020.0164.64
4.3.80.0030.0294.59
4.3.70.0030.0154.63
4.3.60.0030.0144.63
4.3.50.0030.0164.62
4.3.40.0040.0234.54
4.3.30.0030.0163.28
4.3.20.0030.0153.26
4.3.10.0010.0193.22
4.3.00.0130.01728.28

preferences:
46.39 ms | 401 KiB | 5 Q