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(0+ 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.0100.01018.18
8.3.50.0070.00721.92
8.3.40.0070.00718.77
8.3.30.0110.00318.83
8.3.20.0000.00820.35
8.3.10.0090.00023.50
8.3.00.0040.00420.80
8.2.180.0090.00616.32
8.2.170.0090.00622.96
8.2.160.0030.01020.48
8.2.150.0070.00024.18
8.2.140.0070.00724.66
8.2.130.0040.00426.16
8.2.120.0080.00020.55
8.2.110.0090.00022.26
8.2.100.0060.00617.72
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00421.07
8.2.30.0070.00018.23
8.2.20.0070.00017.62
8.2.10.0040.00417.99
8.2.00.0000.00817.61
8.1.280.0070.00725.92
8.1.270.0040.00423.89
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0090.00022.18
8.1.230.0050.00519.04
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0080.00417.10
8.1.190.0000.00817.10
8.1.180.0000.00918.10
8.1.170.0000.00718.51
8.1.160.0040.00422.00
8.1.150.0000.00718.56
8.1.140.0040.00417.39
8.1.130.0000.00717.47
8.1.120.0040.00417.42
8.1.110.0050.00317.39
8.1.100.0000.00817.29
8.1.90.0040.00417.31
8.1.80.0000.00817.29
8.1.70.0000.00817.41
8.1.60.0000.00917.48
8.1.50.0060.00317.45
8.1.40.0030.00617.47
8.1.30.0060.00317.60
8.1.20.0040.00417.61
8.1.10.0000.00817.36
8.1.00.0090.00017.28
8.0.300.0070.00018.77
8.0.290.0000.00817.04
8.0.280.0030.00318.29
8.0.270.0040.00417.10
8.0.260.0030.00516.69
8.0.250.0030.00316.77
8.0.240.0070.00016.92
8.0.230.0030.00316.77
8.0.220.0030.00316.84
8.0.210.0050.00316.81
8.0.200.0000.00616.82
8.0.190.0050.00316.95
8.0.180.0030.00516.81
8.0.170.0050.00316.89
8.0.160.0000.00716.87
8.0.150.0040.00416.76
8.0.140.0050.00216.72
8.0.130.0030.00313.19
8.0.120.0080.00016.84
8.0.110.0040.00416.82
8.0.100.0070.00016.82
8.0.90.0070.00016.84
8.0.80.0140.00716.79
8.0.70.0040.00416.83
8.0.60.0030.00316.82
8.0.50.0040.00416.86
8.0.30.0100.00717.02
8.0.20.0130.00617.40
8.0.10.0040.00416.87
8.0.00.0040.01216.54
7.4.330.0000.00515.13
7.4.320.0060.00016.43
7.4.300.0070.00016.36
7.4.290.0090.00016.51
7.4.280.0070.00016.41
7.4.270.0070.00016.33
7.4.260.0000.01016.46
7.4.250.0050.00216.42
7.4.240.0010.00616.54
7.4.230.0030.00316.59
7.4.220.0030.01416.30
7.4.210.0090.01016.30
7.4.200.0000.00716.59
7.4.160.0090.00616.32
7.4.150.0120.00817.40
7.4.140.0080.01017.86
7.4.130.0100.00716.44
7.4.120.0080.00816.34
7.4.110.0130.01016.54
7.4.100.0110.00616.46
7.4.90.0100.01316.65
7.4.80.0090.00919.39
7.4.70.0060.01116.52
7.4.60.0160.00016.38
7.4.50.0030.00316.31
7.4.40.0100.00616.63
7.4.30.0040.02216.54
7.4.00.0100.00314.81
7.3.330.0020.00313.12
7.3.320.0000.00513.12
7.3.310.0070.00016.23
7.3.300.0040.00416.23
7.3.290.0100.01016.29
7.3.280.0110.00816.25
7.3.270.0170.00017.40
7.3.260.0040.01316.41
7.3.250.0080.00816.50
7.3.240.0070.01016.24
7.3.230.0170.00016.43
7.3.210.0220.00016.52
7.3.200.0090.01219.39
7.3.190.0100.00716.50
7.3.180.0100.00716.19
7.3.170.0040.01216.58
7.3.160.0000.01916.33
7.3.120.0090.00614.98
7.2.330.0130.01216.48
7.2.320.0090.01016.45
7.2.310.0140.00716.45
7.2.300.0060.01016.36
7.2.290.0090.01216.25
7.2.00.0000.01419.09
7.1.100.0070.00718.03
7.1.70.0030.00617.21
7.1.60.0090.01619.70
7.1.50.0040.01816.53
7.1.00.0000.08022.44
7.0.200.0030.00616.80
7.0.140.0130.06321.99
7.0.60.0170.06719.96
7.0.50.0130.07717.80
7.0.40.0070.07020.03
7.0.30.0300.06020.00
7.0.20.0200.06320.21
7.0.10.0100.07020.02
7.0.00.0070.08720.29
5.6.280.0070.07020.90
5.6.210.0070.09020.47
5.6.200.0030.07018.22
5.6.190.0030.06720.32
5.6.180.0230.08320.35
5.6.170.0170.05320.49
5.6.160.0100.04320.47
5.6.150.0070.04018.21
5.6.140.0070.08018.21
5.6.130.0000.06018.21
5.6.120.0030.04321.01
5.6.110.0030.09021.09
5.6.100.0070.07021.13
5.6.90.0100.07020.98
5.6.80.0170.07320.46
5.5.350.0170.08320.32
5.5.340.0030.03717.99
5.5.330.0030.04720.29
5.5.320.0300.07020.24
5.5.310.0170.06020.33
5.5.300.0100.05717.91
5.5.290.0200.04717.98
5.5.280.0070.08320.88
5.5.270.0170.07320.76
5.5.260.0070.08720.72
5.5.250.0030.05020.58
5.5.240.0270.08020.13
5.4.450.0230.04332.00
5.4.440.0300.04332.00
5.4.430.0230.04732.00
5.4.420.0230.02031.96
5.4.410.0300.03332.18
5.4.400.0530.04032.18
5.4.390.0630.04032.18
5.4.380.0830.05718.57
5.4.370.0100.05318.68
5.4.360.0230.04018.48
5.4.350.0170.06018.69
5.4.340.0170.05018.66
5.4.320.0040.03812.45
5.4.310.0050.03712.45
5.4.300.0070.03612.45
5.4.290.0060.03912.45
5.4.280.0060.03812.34
5.4.270.0040.04012.35
5.4.260.0080.04712.35
5.4.250.0050.04512.35
5.4.240.0070.03612.34
5.4.230.0040.04012.34
5.4.220.0060.03712.34
5.4.210.0070.04312.34
5.4.200.0090.03812.34
5.4.190.0060.03812.34
5.4.180.0050.03812.33
5.4.170.0070.03712.34
5.4.160.0080.03612.34
5.4.150.0050.04012.34
5.4.140.0040.04012.02
5.4.130.0060.03612.01
5.4.120.0070.03511.97
5.4.110.0080.03711.96
5.4.100.0090.03511.96
5.4.90.0070.04011.96
5.4.80.0080.04711.96
5.4.70.0060.04211.96
5.4.60.0070.04211.96
5.4.50.0060.03911.96
5.4.40.0080.03511.95
5.4.30.0040.04011.95
5.4.20.0080.03511.95
5.4.10.0080.03611.95
5.4.00.0090.04411.43
5.3.290.0040.04012.80
5.3.280.0060.04412.70
5.3.270.0060.04112.72
5.3.260.0120.05512.72
5.3.250.0130.05212.72
5.3.240.0090.05412.72
5.3.230.0060.05012.71
5.3.220.0040.04212.68
5.3.210.0070.04612.68
5.3.200.0100.04612.68
5.3.190.0070.05012.68
5.3.180.0070.04512.67
5.3.170.0060.03712.67
5.3.160.0040.03812.67
5.3.150.0120.03112.67
5.3.140.0140.03112.66
5.3.130.0070.03812.66
5.3.120.0030.04312.66
5.3.110.0150.03612.65
5.3.100.0120.03512.12
5.3.90.0080.04012.08
5.3.80.0100.04012.07
5.3.70.0100.04312.08
5.3.60.0100.04212.06
5.3.50.0060.04212.00
5.3.40.0100.03812.00
5.3.30.0130.04211.94
5.3.20.0090.04411.71
5.3.10.0030.04111.69
5.3.00.0110.03311.68
5.2.170.0060.0329.18
5.2.160.0060.0319.18
5.2.150.0050.0329.18
5.2.140.0030.0359.18
5.2.130.0060.0289.14
5.2.120.0060.0369.14
5.2.110.0080.0359.15
5.2.100.0040.0409.14
5.2.90.0080.0359.14
5.2.80.0090.0369.14
5.2.70.0060.0409.14
5.2.60.0100.0359.09
5.2.50.0060.0409.05
5.2.40.0050.0389.04
5.2.30.0090.0319.01
5.2.20.0100.0349.01
5.2.10.0080.0358.93
5.2.00.0050.0338.79
5.1.60.0090.0258.07
5.1.50.0090.0268.07
5.1.40.0070.0228.05
5.1.30.0050.0268.40
5.1.20.0070.0308.41
5.1.10.0050.0428.14
5.1.00.0070.0328.14
5.0.50.0050.0286.63
5.0.40.0050.0286.47
5.0.30.0060.0376.29
5.0.20.0050.0256.26
5.0.10.0050.0256.24
5.0.00.0060.0356.23
4.4.90.0060.0204.77
4.4.80.0070.0174.75
4.4.70.0070.0174.75
4.4.60.0050.0184.76
4.4.50.0020.0234.77
4.4.40.0040.0324.71
4.4.30.0030.0224.76
4.4.20.0030.0174.84
4.4.10.0030.0174.85
4.4.00.0060.0304.76
4.3.110.0080.0174.67
4.3.100.0040.0194.67
4.3.90.0020.0204.63
4.3.80.0020.0324.58
4.3.70.0040.0164.63
4.3.60.0020.0174.63
4.3.50.0030.0164.63
4.3.40.0040.0274.54
4.3.30.0030.0163.28
4.3.20.0000.0203.26
4.3.10.0000.0183.22
4.3.00.0200.00732.18

preferences:
37.93 ms | 401 KiB | 5 Q