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? 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.0040.01116.50
8.3.50.0110.00822.00
8.3.40.0100.01018.58
8.3.30.0030.01018.89
8.3.20.0070.00020.04
8.3.10.0050.00223.48
8.3.00.0030.00520.61
8.2.180.0090.00616.32
8.2.170.0090.00622.96
8.2.160.0140.00422.00
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00020.72
8.2.110.0040.00419.21
8.2.100.0060.00617.77
8.2.90.0040.00417.78
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0060.00317.66
8.2.50.0050.00318.07
8.2.40.0000.00919.82
8.2.30.0060.00318.20
8.2.20.0050.00217.66
8.2.10.0040.00417.90
8.2.00.0000.00717.46
8.1.280.0070.01125.92
8.1.270.0050.00323.79
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00723.84
8.1.230.0040.00822.63
8.1.220.0000.00917.74
8.1.210.0050.00318.85
8.1.200.0060.00317.35
8.1.190.0040.00417.10
8.1.180.0070.00018.10
8.1.170.0030.00618.39
8.1.160.0050.00321.96
8.1.150.0040.00418.57
8.1.140.0040.00417.34
8.1.130.0030.00317.75
8.1.120.0080.00017.32
8.1.110.0040.00417.32
8.1.100.0040.00417.47
8.1.90.0000.00717.32
8.1.80.0050.00317.34
8.1.70.0030.00317.39
8.1.60.0080.00317.54
8.1.50.0050.00317.43
8.1.40.0040.00417.34
8.1.30.0080.00017.63
8.1.20.0040.00417.57
8.1.10.0040.00417.24
8.1.00.0040.00417.31
8.0.300.0040.00419.86
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0030.00317.05
8.0.260.0030.00317.11
8.0.250.0070.00016.84
8.0.240.0030.00316.80
8.0.230.0030.00316.74
8.0.220.0030.00316.81
8.0.210.0030.00316.83
8.0.200.0000.00616.90
8.0.190.0070.00016.91
8.0.180.0070.00016.82
8.0.170.0030.00516.82
8.0.160.0030.00316.86
8.0.150.0040.00416.88
8.0.140.0030.00616.77
8.0.130.0000.00513.30
8.0.120.0040.00416.75
8.0.110.0000.00716.73
8.0.100.0030.00416.68
8.0.90.0080.00016.80
8.0.80.0060.00916.72
8.0.70.0040.00416.70
8.0.60.0000.00716.63
8.0.50.0040.00416.75
8.0.30.0140.00516.86
8.0.20.0110.00817.40
8.0.10.0080.00016.78
8.0.00.0080.00916.70
7.4.330.0000.00515.00
7.4.320.0040.00416.35
7.4.300.0000.00616.34
7.4.290.0030.00316.41
7.4.280.0000.00716.43
7.4.270.0000.00716.40
7.4.260.0060.00316.43
7.4.250.0000.00716.53
7.4.240.0020.00616.52
7.4.230.0000.00716.33
7.4.220.0090.01116.46
7.4.210.0030.01516.37
7.4.200.0040.00416.27
7.4.160.0130.00316.41
7.4.150.0030.01417.40
7.4.140.0100.00617.86
7.4.130.0080.01016.36
7.4.120.0090.01016.42
7.4.110.0150.00616.32
7.4.100.0100.01616.45
7.4.90.0100.00716.27
7.4.80.0070.01119.39
7.4.70.0100.00716.46
7.4.60.0030.01316.30
7.4.50.0000.00816.45
7.4.40.0060.00916.35
7.4.30.0070.01016.43
7.4.00.0030.00914.92
7.3.330.0000.00513.02
7.3.320.0000.00712.92
7.3.310.0030.00316.18
7.3.300.0000.00716.17
7.3.290.0080.00816.18
7.3.280.0050.01216.18
7.3.270.0060.01017.40
7.3.260.0090.00716.16
7.3.250.0150.00616.21
7.3.240.0110.00616.30
7.3.230.0060.01116.51
7.3.210.0080.00816.54
7.3.200.0120.00619.39
7.3.190.0130.00316.37
7.3.180.0080.00816.30
7.3.170.0120.00316.27
7.3.160.0070.00716.24
7.3.120.0060.01014.98
7.2.330.0100.00616.47
7.2.320.0110.00616.50
7.2.310.0140.00316.54
7.2.300.0090.01216.32
7.2.290.0110.00916.35
7.2.00.0030.01318.97
7.1.100.0000.01117.92
7.1.70.0040.00417.00
7.1.60.0030.02019.70
7.1.50.0150.00616.61
7.1.00.0070.07322.48
7.0.200.0000.01616.40
7.0.140.0070.07021.96
7.0.60.0100.07720.00
7.0.50.0070.04017.76
7.0.40.0100.08020.20
7.0.30.0330.07320.12
7.0.20.0400.07720.12
7.0.10.0100.07320.00
7.0.00.0170.07320.14
5.6.280.0070.07021.09
5.6.210.0100.05720.71
5.6.200.0100.08018.23
5.6.190.0030.07320.45
5.6.180.2700.04020.41
5.6.170.0270.05320.46
5.6.160.0070.08720.46
5.6.150.0130.04718.11
5.6.140.0070.03718.18
5.6.130.0200.06718.11
5.6.120.0030.05720.98
5.6.110.0170.07321.02
5.6.100.0070.08320.88
5.6.90.0170.08321.11
5.6.80.0130.07720.39
5.6.70.4100.04320.39
5.5.350.0170.07320.39
5.5.340.0030.04317.98
5.5.330.0000.04320.23
5.5.320.3230.03720.26
5.5.310.0200.03720.27
5.5.300.0130.08017.95
5.5.290.0030.05017.91
5.5.280.0000.05320.77
5.5.270.0030.04020.83
5.5.260.0130.06020.93
5.5.250.0030.06020.61
5.5.240.0200.07720.17
5.4.450.0270.03729.93
5.4.440.0270.04329.93
5.4.430.0300.05029.93
5.4.420.0300.03329.92
5.4.410.0400.05029.11
5.4.400.0100.04328.29
5.4.390.0200.03728.29
5.4.380.0100.05718.66
5.4.370.0230.05018.71
5.4.360.0100.05718.49
5.4.350.0300.04018.49
5.4.340.0200.04718.61
5.4.320.0040.03812.45
5.4.310.0080.04012.45
5.4.300.0060.05012.45
5.4.290.0080.04412.45
5.4.280.0100.03212.35
5.4.270.0110.03312.35
5.4.260.0070.03612.35
5.4.250.0110.03412.34
5.4.240.0050.03712.34
5.4.230.0050.03812.34
5.4.220.0090.04912.34
5.4.210.0050.03712.34
5.4.200.0080.03712.34
5.4.190.0060.03712.34
5.4.180.0050.03712.33
5.4.170.0070.03512.35
5.4.160.0100.03112.34
5.4.150.0070.03512.34
5.4.140.0050.03812.02
5.4.130.0020.04012.01
5.4.120.0040.03711.97
5.4.110.0070.03711.97
5.4.100.0050.03711.96
5.4.90.0040.03811.96
5.4.80.0040.03811.96
5.4.70.0070.03311.96
5.4.60.0080.03211.96
5.4.50.0080.04011.96
5.4.40.0060.04911.95
5.4.30.0040.03911.94
5.4.20.0070.03611.94
5.4.10.0070.04211.95
5.4.00.0050.05011.43
5.3.290.0070.03712.80
5.3.280.0100.04812.71
5.3.270.0150.04712.72
5.3.260.0090.04112.72
5.3.250.0050.03912.72
5.3.240.0080.03612.71
5.3.230.0060.03812.70
5.3.220.0090.03412.68
5.3.210.0050.04012.68
5.3.200.0040.03812.68
5.3.190.0070.03612.68
5.3.180.0060.03712.67
5.3.170.0120.03612.67
5.3.160.0080.03712.67
5.3.150.0090.03912.68
5.3.140.0080.03812.66
5.3.130.0070.04012.66
5.3.120.0040.04312.66
5.3.110.0070.04312.66
5.3.100.0080.03912.12
5.3.90.0050.04112.08
5.3.80.0080.03612.08
5.3.70.0050.04112.07
5.3.60.0060.03912.07
5.3.50.0080.03812.00
5.3.40.0060.03812.00
5.3.30.0070.03611.94
5.3.20.0060.03811.71
5.3.10.0090.03511.69
5.3.00.0060.03811.67

preferences:
33.76 ms | 401 KiB | 5 Q