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; /* 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.00418.25
8.3.50.0080.00721.99
8.3.40.0070.00718.51
8.3.30.0040.01118.97
8.3.20.0070.00020.26
8.3.10.0080.00023.52
8.3.00.0080.00020.77
8.2.180.0100.00618.04
8.2.170.0040.01122.96
8.2.160.0030.01020.46
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00319.11
8.2.110.0090.00022.13
8.2.100.0080.00320.59
8.2.90.0000.00818.98
8.2.80.0040.00417.97
8.2.70.0080.00317.38
8.2.60.0080.00417.67
8.2.50.0060.00318.07
8.2.40.0000.00819.89
8.2.30.0040.00418.19
8.2.20.0000.00717.48
8.2.10.0040.00417.98
8.2.00.0000.00917.50
8.1.280.0100.00325.92
8.1.270.0040.00423.96
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0030.00621.82
8.1.230.0110.00019.08
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0080.00017.11
8.1.180.0000.00718.10
8.1.170.0050.00318.65
8.1.160.0000.00721.90
8.1.150.0000.00718.44
8.1.140.0050.00317.29
8.1.130.0070.00017.62
8.1.120.0020.00517.29
8.1.110.0070.00017.32
8.1.100.0000.00717.41
8.1.90.0040.00417.37
8.1.80.0040.00417.35
8.1.70.0050.00317.38
8.1.60.0000.00817.53
8.1.50.0030.00517.34
8.1.40.0000.00717.36
8.1.30.0070.00317.53
8.1.20.0090.00017.41
8.1.10.0060.00317.39
8.1.00.0000.00717.28
8.0.300.0000.00818.77
8.0.290.0050.00216.58
8.0.280.0000.00718.21
8.0.270.0070.00017.11
8.0.260.0030.00317.08
8.0.250.0000.00816.86
8.0.240.0040.00416.86
8.0.230.0070.00016.86
8.0.220.0030.00316.84
8.0.210.0060.00016.80
8.0.200.0040.00416.82
8.0.190.0000.00716.80
8.0.180.0050.00316.82
8.0.170.0000.00716.84
8.0.160.0030.00416.77
8.0.150.0000.00816.82
8.0.140.0000.00816.81
8.0.130.0030.00313.21
8.0.120.0000.00816.77
8.0.110.0070.00016.81
8.0.100.0000.00716.92
8.0.90.0030.00316.74
8.0.80.0090.00616.70
8.0.70.0000.00716.59
8.0.60.0000.00716.63
8.0.50.0070.00016.77
8.0.30.0130.00817.16
8.0.20.0110.00817.40
8.0.10.0060.00316.99
8.0.00.0070.01016.66
7.4.330.0050.00015.04
7.4.320.0030.00316.52
7.4.300.0060.00016.33
7.4.290.0090.00016.50
7.4.280.0070.00316.56
7.4.270.0070.00016.45
7.4.260.0070.00316.40
7.4.250.0000.00716.43
7.4.240.0020.00516.37
7.4.230.0070.00016.32
7.4.220.0140.00616.48
7.4.210.0000.01416.59
7.4.200.0030.00316.31
7.4.160.0040.01516.48
7.4.150.0130.00317.40
7.4.140.0060.01117.86
7.4.130.0110.00816.47
7.4.120.0100.00916.56
7.4.110.0070.01016.46
7.4.100.0090.01216.37
7.4.90.0000.01816.47
7.4.80.0000.02019.39
7.4.70.0110.00616.41
7.4.60.0060.00916.38
7.4.50.0040.00416.07
7.4.40.0030.01316.60
7.4.30.0150.00616.48
7.4.00.0000.01514.96
7.3.330.0030.00313.13
7.3.320.0030.00412.93
7.3.310.0070.00016.11
7.3.300.0030.00316.08
7.3.290.0100.00316.22
7.3.280.0100.00916.20
7.3.270.0000.01717.40
7.3.260.0130.00416.25
7.3.250.0060.01616.25
7.3.240.0130.00316.43
7.3.230.0070.01016.39
7.3.210.0110.00616.46
7.3.200.0060.01319.39
7.3.190.0000.01616.32
7.3.180.0060.00916.34
7.3.170.0100.00616.58
7.3.160.0030.01216.39
7.3.120.0080.00814.74
7.2.330.0100.00716.23
7.2.320.0090.00616.65
7.2.310.0040.01216.62
7.2.300.0080.00816.64
7.2.290.0080.00816.40
7.2.60.0060.00616.66
7.2.50.0070.00716.42
7.2.00.0040.01119.20
7.1.200.0110.00315.68
7.1.100.0070.00717.90
7.1.70.0000.00716.90
7.1.60.0060.01319.70
7.1.50.0210.01734.59
7.1.00.0070.07322.54
7.0.200.0000.00816.28
7.0.140.0030.06722.01
7.0.60.0100.05019.89
7.0.50.0170.06317.80
7.0.40.0070.04020.27
7.0.30.0270.06720.04
7.0.20.0200.05720.01
7.0.10.0200.06020.16
7.0.00.0170.07019.99
5.6.280.0100.06720.90
5.6.210.0100.07320.68
5.6.200.0070.04018.11
5.6.190.0030.05720.77
5.6.180.3070.04320.62
5.6.170.0170.05320.45
5.6.160.0030.04720.46
5.6.150.0000.04318.18
5.6.140.0070.07718.12
5.6.130.0130.06018.12
5.6.120.0070.04720.96
5.6.110.0030.07721.13
5.6.100.0130.07720.95
5.6.90.0070.09321.08
5.6.80.0070.07020.50
5.6.70.4200.04320.50
5.5.350.0270.05320.30
5.5.340.0070.06317.96
5.5.330.0030.06020.41
5.5.320.0200.05020.29
5.5.310.0470.05020.27
5.5.300.0000.07017.93
5.5.290.0000.04317.92
5.5.280.0070.04720.86
5.5.270.0070.08320.76
5.5.260.0100.07320.88
5.5.250.0170.07720.70
5.5.240.0200.07720.17
5.4.450.0500.04029.93
5.4.440.0200.05029.33
5.4.430.0530.04328.29
5.4.420.0430.04328.29
5.4.410.0330.04028.29
5.4.400.0430.04328.29
5.4.390.0670.04328.29
5.4.380.0170.07318.79
5.4.370.0170.05018.69
5.4.360.0170.05018.56
5.4.350.0170.05018.56
5.4.340.0130.05318.62
5.4.320.0090.03912.45
5.4.310.0090.04512.45
5.4.300.0100.03812.45
5.4.290.0100.04912.45
5.4.280.0070.04412.35
5.4.270.0040.04812.35
5.4.260.0050.03912.34
5.4.250.0030.04312.35
5.4.240.0070.03712.35
5.4.230.0040.04312.34
5.4.220.0090.03712.34
5.4.210.0080.03912.34
5.4.200.0090.05012.34
5.4.190.0130.04512.33
5.4.180.0120.03512.33
5.4.170.0040.04212.34
5.4.160.0050.03812.34
5.4.150.0060.03912.34
5.4.140.0060.04112.02
5.4.130.0080.04112.01
5.4.120.0100.04611.97
5.4.110.0100.03711.96
5.4.100.0060.04011.96
5.4.90.0070.03811.96
5.4.80.0080.03911.96
5.4.70.0110.04411.96
5.4.60.0080.04811.96
5.4.50.0140.04211.96
5.4.40.0120.04811.95
5.4.30.0060.04911.95
5.4.20.0090.04811.94
5.4.10.0090.03911.95
5.4.00.0060.03711.43
5.3.290.0050.04312.80
5.3.280.0090.04212.70
5.3.270.0060.05012.72
5.3.260.0060.05412.72
5.3.250.0080.04812.72
5.3.240.0120.04512.71
5.3.230.0060.05412.71
5.3.220.0130.04912.68
5.3.210.0080.05412.68
5.3.200.0080.04512.68
5.3.190.0070.04412.68
5.3.180.0060.03912.68
5.3.170.0060.04012.67
5.3.160.0050.03912.67
5.3.150.0040.04012.67
5.3.140.0070.03812.66
5.3.130.0080.03912.66
5.3.120.0070.04112.66
5.3.110.0040.04412.66
5.3.100.0070.03912.12
5.3.90.0040.04112.08
5.3.80.0050.03912.08
5.3.70.0060.04012.07
5.3.60.0050.04312.07
5.3.50.0080.04012.00
5.3.40.0060.04312.00
5.3.30.0060.03611.94
5.3.20.0060.03711.72
5.3.10.0090.03511.70
5.3.00.0050.03811.67

preferences:
39.82 ms | 401 KiB | 5 Q