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. This has been around since at least PHP 3. */

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.0110.00718.30
8.3.50.0140.00522.08
8.3.40.0140.00418.42
8.3.30.0080.00618.77
8.3.20.0000.00720.21
8.3.10.0040.00423.48
8.3.00.0060.00320.93
8.2.180.0150.00016.38
8.2.170.0110.00322.96
8.2.160.0040.01120.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.01026.16
8.2.120.0040.00420.84
8.2.110.0050.00522.27
8.2.100.0030.00817.59
8.2.90.0040.00417.66
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0060.00319.82
8.2.30.0060.00318.31
8.2.20.0030.00617.48
8.2.10.0080.00018.00
8.2.00.0030.00317.52
8.1.280.0120.00325.92
8.1.270.0050.00322.22
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0110.01122.34
8.1.230.0080.00320.88
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00417.13
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0080.00018.48
8.1.160.0040.00422.06
8.1.150.0000.00818.54
8.1.140.0050.00217.37
8.1.130.0000.00717.76
8.1.120.0040.00417.36
8.1.110.0000.00717.38
8.1.100.0040.00417.39
8.1.90.0030.00317.26
8.1.80.0000.00817.30
8.1.70.0000.00717.38
8.1.60.0080.00017.48
8.1.50.0060.00317.42
8.1.40.0070.00017.45
8.1.30.0030.00617.53
8.1.20.0040.00417.60
8.1.10.0040.00417.27
8.1.00.0040.00417.34
8.0.300.0000.00719.86
8.0.290.0000.00716.63
8.0.280.0000.00718.26
8.0.270.0070.00317.12
8.0.260.0040.00417.11
8.0.250.0000.00716.84
8.0.240.0050.00316.83
8.0.230.0050.00316.78
8.0.220.0040.00416.82
8.0.210.0070.00016.70
8.0.200.0000.00616.79
8.0.190.0040.00416.75
8.0.180.0070.00016.81
8.0.170.0060.00316.79
8.0.160.0030.00316.77
8.0.150.0000.01016.77
8.0.140.0000.00816.66
8.0.130.0030.00313.25
8.0.120.0000.00816.80
8.0.110.0070.00016.79
8.0.100.0030.00516.87
8.0.90.0050.00216.62
8.0.80.0120.00816.76
8.0.70.0040.00416.88
8.0.60.0030.00316.87
8.0.50.0040.00416.77
8.0.30.0130.00816.88
8.0.20.0120.00817.40
8.0.10.0000.00816.76
8.0.00.0080.00916.67
7.4.330.0000.00515.00
7.4.320.0030.00316.43
7.4.300.0040.00416.52
7.4.290.0050.00516.37
7.4.280.0000.00916.55
7.4.270.0080.00016.38
7.4.260.0030.00316.48
7.4.250.0040.00416.49
7.4.240.0020.00516.43
7.4.230.0070.00016.24
7.4.220.0110.00616.38
7.4.210.0060.01316.39
7.4.200.0070.00016.17
7.4.160.0160.00416.65
7.4.150.0070.01417.40
7.4.140.0110.00617.86
7.4.130.0070.01016.45
7.4.120.0150.00516.38
7.4.110.0030.01916.26
7.4.100.0120.00616.46
7.4.90.0100.01016.46
7.4.80.0080.01419.39
7.4.70.0040.01216.55
7.4.60.0030.01416.39
7.4.50.0040.00416.39
7.4.40.0070.01016.23
7.4.30.0100.00716.30
7.4.00.0000.01714.78
7.3.330.0070.00013.10
7.3.320.0050.00012.91
7.3.310.0000.00716.11
7.3.300.0060.00016.20
7.3.290.0040.01116.23
7.3.280.0080.01116.24
7.3.270.0030.01317.40
7.3.260.0170.00016.59
7.3.250.0110.00616.27
7.3.240.0070.01016.20
7.3.230.0090.00916.39
7.3.210.0140.00316.32
7.3.200.0080.00819.39
7.3.190.0110.00516.14
7.3.180.0140.00716.39
7.3.170.0060.01016.38
7.3.160.0130.01016.24
7.3.120.0060.00914.96
7.2.330.0100.00716.24
7.2.320.0120.01216.35
7.2.310.0040.01216.16
7.2.300.0110.00716.43
7.2.290.0000.01816.61
7.2.00.0080.00818.95
7.1.100.0060.00618.14
7.1.70.0070.00017.10
7.1.60.0110.01419.70
7.1.50.0070.01416.63
7.1.00.0000.08022.43
7.0.200.0120.00014.57
7.0.140.0000.08021.96
7.0.60.0030.06319.85
7.0.50.0130.04017.87
7.0.40.0070.05020.41
7.0.30.0330.04320.09
7.0.20.0170.05320.33
7.0.10.0030.04320.21
7.0.00.0070.06720.03
5.6.280.0030.07321.11
5.6.210.0070.03720.66
5.6.200.0100.08018.21
5.6.190.0070.08020.60
5.6.180.2900.04320.41
5.6.170.0170.04320.52
5.6.160.0030.06020.44
5.6.150.0070.07018.15
5.6.140.0070.08318.07
5.6.130.0030.08718.20
5.6.120.0070.07021.09
5.6.110.0070.07720.99
5.6.100.0070.07021.12
5.6.90.0100.03320.94
5.6.80.0070.06720.43
5.6.70.4030.04020.49
5.5.350.0300.06020.48
5.5.340.0070.07717.93
5.5.330.0000.04320.43
5.5.320.3370.04320.17
5.5.310.0370.07020.26
5.5.300.0070.08717.90
5.5.290.0030.04018.01
5.5.280.0130.08020.79
5.5.270.0100.08720.66
5.5.260.0030.09320.92
5.5.250.0030.04020.55
5.5.240.0170.03020.03
5.4.450.0500.03328.86
5.4.440.0330.04328.29
5.4.430.0300.04328.29
5.4.420.0470.04328.29
5.4.410.0530.03328.29
5.4.400.0270.03728.28
5.4.390.0200.04728.28
5.4.380.0100.05718.51
5.4.370.0130.05318.50
5.4.360.0200.06318.68
5.4.350.0170.05318.68
5.4.340.0130.07318.74
5.4.320.0060.03612.45
5.4.310.0080.03812.45
5.4.300.0100.03912.45
5.4.290.0100.04112.45
5.4.280.0080.04312.34
5.4.270.0080.03512.34
5.4.260.0030.04112.35
5.4.250.0070.03712.34
5.4.240.0100.03512.34
5.4.230.0100.03512.34
5.4.220.0050.04212.34
5.4.210.0100.03712.34
5.4.200.0060.04312.34
5.4.190.0050.04012.34
5.4.180.0080.03912.34
5.4.170.0070.03812.34
5.4.160.0090.03712.34
5.4.150.0030.04512.34
5.4.140.0090.04412.02
5.4.130.0110.06312.00
5.4.120.0060.05511.96
5.4.110.0070.05211.96
5.4.100.0100.04811.96
5.4.90.0110.05411.96
5.4.80.0060.05611.96
5.4.70.0090.05011.96
5.4.60.0080.05011.96
5.4.50.0090.05011.96
5.4.40.0110.04711.95
5.4.30.0090.04911.95
5.4.20.0060.05411.95
5.4.10.0060.05211.95
5.4.00.0060.05311.43
5.3.290.0060.03912.80
5.3.280.0100.05012.71
5.3.270.0090.05412.72
5.3.260.0150.05112.72
5.3.250.0070.05612.72
5.3.240.0100.05312.72
5.3.230.0110.05212.71
5.3.220.0100.04512.68
5.3.210.0110.04612.68
5.3.200.0090.04112.68
5.3.190.0070.04712.68
5.3.180.0100.05012.67
5.3.170.0070.04412.67
5.3.160.0070.04612.68
5.3.150.0100.04012.67
5.3.140.0100.04112.66
5.3.130.0070.04312.66
5.3.120.0070.03912.66
5.3.110.0090.04612.66
5.3.100.0080.04912.12
5.3.90.0100.05312.08
5.3.80.0080.04212.07
5.3.70.0070.04412.07
5.3.60.0120.03912.07
5.3.50.0100.04512.00
5.3.40.0100.04612.00
5.3.30.0110.04111.94
5.3.20.0070.04011.72
5.3.10.0080.03611.69
5.3.00.0060.03711.67

preferences:
37.65 ms | 401 KiB | 5 Q