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; const float = 5.5; // Let's try using it! var_dump(int, float); /* 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.0070.01316.38
8.3.50.0110.00922.01
8.3.40.0040.01118.60
8.3.30.0100.00319.10
8.3.20.0050.00220.41
8.3.10.0070.00023.50
8.3.00.0070.00020.96
8.2.180.0040.01116.36
8.2.170.0110.00622.96
8.2.160.0080.00820.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00020.89
8.2.110.0060.00322.25
8.2.100.0040.00820.35
8.2.90.0030.00619.16
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0090.00017.80
8.2.50.0060.00318.07
8.2.40.0080.00018.03
8.2.30.0060.00318.23
8.2.20.0040.00417.68
8.2.10.0000.00717.91
8.2.00.0060.00317.64
8.1.280.0000.01525.92
8.1.270.0000.00823.96
8.1.260.0020.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00322.14
8.1.230.0110.00019.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.46
8.1.160.0000.00821.96
8.1.150.0000.00718.55
8.1.140.0070.00017.38
8.1.130.0070.00017.67
8.1.120.0000.00717.44
8.1.110.0050.00317.44
8.1.100.0040.00417.43
8.1.90.0080.00017.31
8.1.80.0040.00417.30
8.1.70.0000.00717.39
8.1.60.0030.00517.57
8.1.50.0000.00717.45
8.1.40.0080.00017.40
8.1.30.0030.00517.41
8.1.20.0040.00417.68
8.1.10.0040.00417.27
8.1.00.0000.00717.32
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00718.27
8.0.270.0080.00017.17
8.0.260.0000.00617.16
8.0.250.0070.00016.90
8.0.240.0050.00216.89
8.0.230.0080.00016.90
8.0.220.0060.00016.87
8.0.210.0040.00416.79
8.0.200.0000.00616.85
8.0.190.0070.00016.79
8.0.180.0070.00016.80
8.0.170.0030.00616.85
8.0.160.0040.00416.89
8.0.150.0030.00516.84
8.0.140.0000.00716.78
8.0.130.0000.00513.28
8.0.120.0000.00716.66
8.0.110.0000.00716.64
8.0.100.0040.00416.79
8.0.90.0050.00216.64
8.0.80.0060.01016.86
8.0.70.0040.00416.70
8.0.60.0040.00416.86
8.0.50.0030.00616.79
8.0.30.0140.00916.97
8.0.20.0130.01017.40
8.0.10.0000.00716.97
8.0.00.0110.00716.73
7.4.330.0020.00215.07
7.4.320.0060.00016.34
7.4.300.0040.00416.50
7.4.290.0030.00316.33
7.4.280.0000.00716.41
7.4.270.0030.00316.54
7.4.260.0000.00716.53
7.4.250.0040.00416.38
7.4.240.0050.00216.44
7.4.230.0000.00716.27
7.4.220.0090.00916.32
7.4.210.0060.01316.54
7.4.200.0050.00216.61
7.4.160.0080.00616.31
7.4.150.0100.00917.40
7.4.140.0100.00817.86
7.4.130.0120.00916.34
7.4.120.0110.00816.45
7.4.110.0110.00716.46
7.4.100.0090.00816.41
7.4.90.0060.01016.48
7.4.80.0030.01319.39
7.4.70.0140.00516.49
7.4.60.0130.00316.57
7.4.50.0060.00316.48
7.4.40.0060.01016.39
7.4.30.0030.01316.46
7.4.00.0090.00814.74
7.3.330.0000.00613.02
7.3.320.0080.00013.04
7.3.310.0030.00316.04
7.3.300.0000.00716.18
7.3.290.0110.00916.14
7.3.280.0100.00916.11
7.3.270.0100.01317.40
7.3.260.0110.00816.19
7.3.250.0140.01016.40
7.3.240.0040.01616.44
7.3.230.0110.00616.39
7.3.210.0110.01116.21
7.3.200.0120.00619.39
7.3.190.0090.01316.16
7.3.180.0090.00616.54
7.3.170.0130.00316.27
7.3.160.0060.00916.23
7.3.120.0050.00514.83
7.3.110.0060.01014.44
7.3.100.0000.01414.84
7.3.90.0060.00314.90
7.3.80.0070.00714.89
7.3.70.0060.00614.62
7.3.60.0070.00314.69
7.3.50.0030.01314.66
7.3.40.0070.01014.48
7.3.30.0030.00714.61
7.3.20.0070.01016.35
7.3.10.0070.00416.63
7.3.00.0000.01416.63
7.2.330.0030.01316.39
7.2.320.0100.00616.37
7.2.310.0120.00416.56
7.2.300.0000.01716.39
7.2.290.0100.00916.64
7.2.250.0070.01114.59
7.2.240.0040.01614.98
7.2.230.0120.00614.86
7.2.220.0060.00614.85
7.2.210.0060.00314.86
7.2.200.0000.01214.98
7.2.190.0100.00714.79
7.2.180.0150.00414.82
7.2.170.0100.00614.96
7.1.330.0060.00915.73
7.1.320.0060.00815.73
7.1.310.0030.01015.93
7.1.300.0110.00415.71
7.1.290.0030.01015.33
7.1.280.0040.00715.54
7.1.270.0040.01215.89
7.1.260.0090.00915.51
7.1.70.0070.00016.97
7.1.60.0140.01019.70
7.1.50.0260.01334.57
7.1.00.0100.07022.33
7.0.200.0030.00616.72
7.0.140.0030.07022.19
7.0.60.0030.05319.80
7.0.50.0070.08017.80
7.0.40.0130.08020.20
7.0.30.0230.07020.34
7.0.20.0170.04720.01
7.0.10.0030.04320.04
7.0.00.0030.04020.11
5.6.280.0070.07021.01
5.6.210.0000.04320.64
5.6.200.0100.07318.18
5.6.190.0000.05320.33
5.6.180.3900.03720.60
5.6.170.0270.08020.40
5.6.160.0070.07320.61
5.6.150.0030.08718.21
5.6.140.0130.07018.16
5.6.130.0000.05718.20
5.6.120.0030.04721.14
5.6.110.0130.03320.98
5.6.100.0030.09020.98
5.6.90.0130.07721.09
5.6.80.0100.07720.34
5.6.70.4500.03720.36
5.5.350.0170.04020.31
5.5.340.0100.03717.99
5.5.330.0070.08020.56
5.5.320.3800.03720.22
5.5.310.0230.08320.23
5.5.300.0170.07017.89
5.5.290.0100.07718.02
5.5.280.0030.04020.86
5.5.270.0200.09020.75
5.5.260.0030.08020.88
5.5.250.0070.08020.70
5.5.240.0270.07020.20
5.4.450.0170.05029.93
5.4.440.0270.04029.93
5.4.430.1070.03719.13
5.4.420.0300.04029.52
5.4.410.0500.03728.29
5.4.400.0270.03728.29
5.4.390.0470.04028.29
5.4.380.0170.05018.71
5.4.370.0170.05718.71
5.4.360.0100.06018.69
5.4.350.0130.05718.71
5.4.340.0100.05718.64
5.4.320.0060.03912.45
5.4.310.0080.03612.45
5.4.300.0090.04812.45
5.4.290.0060.04712.45
5.4.280.0070.05212.34
5.4.270.0070.03812.34
5.4.260.0080.04112.34
5.4.250.0100.03412.34
5.4.240.0080.03512.35
5.4.230.0060.03812.34
5.4.220.0060.03812.34
5.4.210.0100.03612.34
5.4.200.0110.05612.34
5.4.190.0070.05912.33
5.4.180.0110.05212.34
5.4.170.0160.06612.34
5.4.160.0050.03912.34
5.4.150.0090.03512.34
5.4.140.0080.04012.02
5.4.130.0080.03812.01
5.4.120.0070.03811.97
5.4.110.0120.05111.96
5.4.100.0090.04811.96
5.4.90.0110.05611.96
5.4.80.0060.04111.96
5.4.70.0070.03811.96
5.4.60.0060.04211.96
5.4.50.0080.05011.96
5.4.40.0090.04311.95
5.4.30.0070.04211.95
5.4.20.0070.03711.95
5.4.10.0060.03711.94
5.4.00.0080.03611.44
5.3.290.0110.05212.80
5.3.280.0080.03812.70
5.3.270.0090.04012.72
5.3.260.0100.03812.71
5.3.250.0100.04212.72
5.3.240.0080.05212.72
5.3.230.0080.04512.71
5.3.220.0080.03912.68
5.3.210.0110.03912.68
5.3.200.0070.04412.68
5.3.190.0100.04812.68
5.3.180.0120.04412.68
5.3.170.0100.04412.67
5.3.160.0140.04612.67
5.3.150.0060.04612.67
5.3.140.0090.03912.66
5.3.130.0040.04812.66
5.3.120.0050.04512.66
5.3.110.0060.04712.66
5.3.100.0020.05012.12
5.3.90.0070.04812.08
5.3.80.0110.04212.07
5.3.70.0080.03812.08
5.3.60.0050.03712.06
5.3.50.0040.03712.00
5.3.40.0030.03912.00
5.3.30.0050.03711.94
5.3.20.0080.03611.72
5.3.10.0080.03611.70
5.3.00.0060.03911.68
5.2.170.0050.0319.18
5.2.160.0050.0299.18
5.2.150.0060.0309.18
5.2.140.0070.0339.18
5.2.130.0070.0489.14
5.2.120.0070.0329.14
5.2.110.0070.0349.15
5.2.100.0050.0329.14
5.2.90.0050.0319.14
5.2.80.0070.0349.14
5.2.70.0060.0329.14
5.2.60.0040.0359.09
5.2.50.0050.0339.05
5.2.40.0060.0299.03
5.2.30.0040.0309.02
5.2.20.0040.0309.01
5.2.10.0060.0288.93
5.2.00.0050.0318.79
5.1.60.0060.0258.06
5.1.50.0080.0228.06
5.1.40.0040.0258.05
5.1.30.0040.0278.40
5.1.20.0040.0368.41
5.1.10.0050.0348.14
5.1.00.0050.0288.14
5.0.50.0040.0216.62
5.0.40.0030.0206.48
5.0.30.0070.0346.29
5.0.20.0020.0246.27
5.0.10.0050.0206.24
5.0.00.0040.0326.23
4.4.90.0010.0194.78
4.4.80.0020.0204.76
4.4.70.0050.0194.75
4.4.60.0030.0194.75
4.4.50.0090.0124.77
4.4.40.0040.0294.71
4.4.30.0040.0174.76
4.4.20.0050.0184.85
4.4.10.0060.0184.85
4.4.00.0080.0264.76
4.3.110.0050.0204.67
4.3.100.0030.0204.66
4.3.90.0050.0194.64
4.3.80.0050.0294.59
4.3.70.0050.0154.63
4.3.60.0080.0174.63
4.3.50.0060.0204.63
4.3.40.0050.0304.53
4.3.30.0040.0213.28
4.3.20.0040.0233.26
4.3.10.0080.0173.22
4.3.00.0030.01728.29

preferences:
48.62 ms | 401 KiB | 5 Q