3v4l.org

run code in 300+ PHP versions simultaneously
<?php // int isn't a reserved word, right? // So this should work fine! const ínt = 7; // Let's try using it! var_dump(ínt); /* 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.0140.00718.43
8.3.50.0110.00522.05
8.3.40.0110.00418.60
8.3.30.0090.00619.02
8.3.20.0000.00820.20
8.3.10.0080.00023.48
8.3.00.0040.00420.81
8.2.180.0140.00416.32
8.2.170.0110.00422.96
8.2.160.0070.00720.38
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.01126.16
8.2.120.0040.00420.66
8.2.110.0070.00321.04
8.2.100.0090.00317.66
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0000.00820.95
8.2.30.0000.00818.08
8.2.20.0000.00817.67
8.2.10.0000.00817.86
8.2.00.0000.00717.51
8.1.280.0100.01025.92
8.1.270.0090.00023.83
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00622.05
8.1.230.0070.00420.66
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0000.00818.60
8.1.160.0040.00421.91
8.1.150.0040.00418.61
8.1.140.0070.00017.29
8.1.130.0060.00017.82
8.1.120.0000.00717.46
8.1.110.0080.00017.35
8.1.100.0000.00717.26
8.1.90.0040.00417.27
8.1.80.0000.00717.38
8.1.70.0030.00517.30
8.1.60.0040.00717.47
8.1.50.0040.00417.34
8.1.40.0000.00717.46
8.1.30.0040.00417.50
8.1.20.0040.00417.51
8.1.10.0030.00517.39
8.1.00.0000.01017.32
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00718.29
8.0.270.0030.00317.16
8.0.260.0000.00817.18
8.0.250.0040.00416.95
8.0.240.0000.00616.83
8.0.230.0030.00316.80
8.0.220.0000.00816.71
8.0.210.0040.00416.69
8.0.200.0030.00316.87
8.0.190.0000.00816.84
8.0.180.0040.00416.74
8.0.170.0040.00416.88
8.0.160.0000.00716.80
8.0.150.0030.00516.84
8.0.140.0030.00716.67
8.0.130.0030.00313.17
8.0.120.0040.00416.69
8.0.110.0040.00416.70
8.0.100.0070.00016.64
8.0.90.0000.00716.66
8.0.80.0000.01716.79
8.0.70.0040.00416.68
8.0.60.0030.00316.61
8.0.50.0040.00416.72
8.0.30.0110.00817.01
8.0.20.0100.00817.40
8.0.10.0040.00416.98
8.0.00.0090.00816.58
7.4.330.0020.00215.00
7.4.320.0000.00616.42
7.4.300.0000.00616.44
7.4.290.0030.00516.57
7.4.280.0050.00316.39
7.4.270.0000.00816.55
7.4.260.0100.00016.36
7.4.250.0040.00416.49
7.4.240.0080.00016.44
7.4.230.0050.00216.62
7.4.220.0150.00616.52
7.4.210.0120.00416.59
7.4.200.0070.00016.33
7.4.160.0090.00616.28
7.4.150.0060.01017.40
7.4.140.0110.00617.86
7.4.130.0120.00716.34
7.4.120.0080.00916.46
7.4.110.0130.00316.47
7.4.100.0080.01516.12
7.4.90.0100.00716.31
7.4.80.0110.00619.39
7.4.70.0120.00616.47
7.4.60.0100.01316.43
7.4.50.0000.00716.28
7.4.40.0030.01316.30
7.4.30.0130.00316.23
7.4.10.0070.01014.89
7.4.00.0050.01214.83
7.3.330.0000.00513.05
7.3.320.0030.00313.00
7.3.310.0070.00016.04
7.3.300.0000.00616.07
7.3.290.0050.01016.16
7.3.280.0080.01016.18
7.3.270.0110.00717.40
7.3.260.0110.00616.17
7.3.250.0080.00916.31
7.3.240.0120.00916.36
7.3.230.0130.00316.39
7.3.210.0060.01116.23
7.3.200.0070.01019.39
7.3.190.0120.00416.57
7.3.180.0060.00916.20
7.3.170.0090.00616.27
7.3.160.0090.00616.18
7.3.130.0030.01315.04
7.3.120.0050.00914.76
7.3.110.0000.01914.30
7.3.100.0110.00014.51
7.3.90.0110.00314.80
7.3.80.0050.00514.71
7.3.70.0090.00614.87
7.3.60.0080.00414.54
7.3.50.0100.00314.84
7.3.40.0040.00814.93
7.3.30.0000.01014.54
7.3.20.0030.01016.73
7.3.10.0030.01016.44
7.3.00.0040.01416.63
7.2.330.0030.01416.67
7.2.320.0090.00916.68
7.2.310.0030.01216.35
7.2.300.0030.01816.66
7.2.290.0060.01216.45
7.2.260.0070.01014.99
7.2.250.0040.01514.95
7.2.240.0100.00614.86
7.2.230.0100.00614.88
7.2.220.0060.00814.92
7.2.210.0000.01314.97
7.2.200.0000.01814.90
7.2.190.0030.01014.64
7.2.180.0030.01314.74
7.2.170.0030.00914.85
7.2.160.0150.00315.13
7.2.150.0090.00316.99
7.2.140.0100.00716.37
7.2.130.0100.00716.79
7.2.120.0000.01416.84
7.2.110.0100.00316.87
7.2.100.0040.00716.74
7.2.90.0000.01216.88
7.2.80.0000.00916.75
7.2.70.0090.00616.78
7.2.60.0040.00916.94
7.2.50.0060.00316.82
7.2.40.0070.00716.95
7.2.30.0090.00017.01
7.2.20.0070.01116.89
7.2.10.0090.00617.00
7.2.00.0050.00917.89
7.1.330.0080.00815.61
7.1.320.0070.00715.50
7.1.310.0000.00915.44
7.1.300.0030.00615.63
7.1.290.0060.00615.61
7.1.280.0130.00315.77
7.1.270.0090.00615.54
7.1.260.0080.00815.84
7.1.250.0070.01015.50
7.1.240.0040.00415.80
7.1.230.0040.00715.66
7.1.220.0110.00415.68
7.1.210.0090.00315.69
7.1.200.0100.00315.63
7.1.190.0030.01015.60
7.1.180.0070.00715.63
7.1.170.0030.00715.61
7.1.160.0060.00615.80
7.1.150.0090.00915.66
7.1.140.0060.00915.71
7.1.130.0070.00315.66
7.1.120.0000.01115.85
7.1.110.0090.00315.64
7.1.100.0010.01116.82
7.1.90.0090.00915.54
7.1.80.0090.00915.76
7.1.70.0090.00616.34
7.1.60.0030.01417.68
7.1.50.0080.01116.26
7.1.40.0040.00815.66
7.1.30.0060.00615.65
7.1.20.0070.00715.54
7.1.10.0040.00815.64
7.1.00.0070.03818.98
7.0.330.0110.00315.31
7.0.320.0070.00415.02
7.0.310.0040.00715.25
7.0.300.0040.00815.33
7.0.290.0110.00315.05
7.0.280.0020.01315.21
7.0.270.0030.00715.28
7.0.260.0060.00615.00
7.0.250.0090.00615.19
7.0.240.0070.00715.32
7.0.230.0040.00715.18
7.0.220.0030.01015.04
7.0.210.0100.00315.27
7.0.200.0000.01016.03
7.0.190.0000.01615.35
7.0.180.0030.01415.30
7.0.170.0040.01115.46
7.0.160.0100.00715.10
7.0.150.0000.01215.34
7.0.140.0050.04018.74
7.0.130.0060.00915.31
7.0.120.0060.01215.31
7.0.110.0060.00915.16
7.0.100.0030.01215.23
7.0.90.0000.01515.34
7.0.80.0000.01315.43
7.0.70.0000.00915.40
7.0.60.0100.04317.50
7.0.50.0030.02516.68
7.0.40.0070.04116.88
7.0.30.0150.03716.71
7.0.20.0150.03616.74
7.0.10.0070.02516.83
7.0.00.0080.03116.87
5.6.400.0030.01014.32
5.6.390.0090.00014.53
5.6.380.0000.01414.23
5.6.370.0110.00413.85
5.6.360.0060.00314.19
5.6.350.0070.00314.00
5.6.340.0090.00614.37
5.6.330.0000.01313.97
5.6.320.0080.00414.16
5.6.310.0030.00914.07
5.6.300.0030.01014.45
5.6.290.0070.00714.43
5.6.280.0050.03817.60
5.6.270.0070.00714.34
5.6.260.0040.01114.49
5.6.250.0030.01014.11
5.6.240.0060.00914.32
5.6.230.0120.00314.37
5.6.220.0040.00714.11
5.6.210.0070.04217.38
5.6.200.0030.02616.18
5.6.190.0070.03017.23
5.6.180.0860.02217.42
5.6.170.0180.04117.46
5.6.160.0050.04917.27
5.6.150.0050.04416.14
5.6.140.0060.02316.22
5.6.130.0060.03516.18
5.6.120.0080.04017.50
5.6.110.0030.04917.62
5.6.100.0070.02017.50
5.6.90.0100.02817.51
5.6.80.0080.04217.18
5.6.70.2110.02317.25
5.6.60.0090.00614.03
5.6.50.0100.00014.08
5.6.40.0110.00314.14
5.6.30.0000.01314.05
5.6.20.0060.00314.18
5.6.10.0090.00314.28
5.6.00.0040.01114.23
5.5.380.0060.01013.97
5.5.370.0070.00714.24
5.5.360.0030.00514.04
5.5.350.1870.02317.15
5.5.340.0120.04016.03
5.5.330.0050.02517.22
5.5.320.2120.02317.38
5.5.310.0160.02517.35
5.5.300.0070.04516.10
5.5.290.0100.03916.11
5.5.280.0050.02417.50
5.5.270.0080.02717.29
5.5.260.0080.03817.44
5.5.250.0150.03617.18
5.5.240.0170.02717.16
5.5.230.0070.00713.82
5.5.220.0030.00913.71
5.5.210.0030.00714.22
5.5.200.0000.01013.86
5.5.190.0060.00614.23
5.5.180.0090.00314.00
5.5.170.0030.01213.86
5.5.160.0070.01014.12
5.5.150.0040.00814.25
5.5.140.0070.00314.02
5.5.130.0060.00614.27
5.5.120.0030.01013.85
5.5.110.0030.00614.07
5.5.100.0030.01013.64
5.5.90.0000.01513.91
5.5.80.0000.01114.00
5.5.70.0090.00013.99
5.5.60.0100.00614.14
5.5.50.0030.00614.25
5.5.40.0040.01114.01
5.5.30.0000.01314.23
5.5.20.0030.01014.12
5.5.10.0000.00913.80
5.5.00.0130.00014.28
5.4.450.0280.03115.29
5.4.440.0550.03515.13
5.4.430.0480.02815.10
5.4.420.0370.03215.26
5.4.410.0410.02515.19
5.4.400.0570.02514.99
5.4.390.0530.02915.06
5.4.380.0060.03414.83
5.4.370.0120.02714.84
5.4.360.0120.02514.78
5.4.350.0110.02714.79
5.4.340.0150.02314.89
5.4.330.0030.00310.99
5.4.320.0020.02611.72
5.4.310.0070.02211.72
5.4.300.0050.02111.72
5.4.290.0080.01911.72
5.4.280.0020.02411.67
5.4.270.0050.02311.67
5.4.260.0050.02311.67
5.4.250.0070.02011.67
5.4.240.0060.02011.67
5.4.230.0070.02011.67
5.4.220.0080.01911.66
5.4.210.0060.02311.66
5.4.200.0050.02411.66
5.4.190.0070.01911.66
5.4.180.0050.02211.66
5.4.170.0050.02311.67
5.4.160.0070.02011.67
5.4.150.0050.02111.66
5.4.140.0050.02311.51
5.4.130.0050.02311.52
5.4.120.0030.02411.48
5.4.110.0060.02011.48
5.4.100.0050.02211.48
5.4.90.0040.02211.48
5.4.80.0080.01911.48
5.4.70.0050.02311.47
5.4.60.0080.01611.47
5.4.50.0030.02311.47
5.4.40.0040.02311.47
5.4.30.0090.02211.47
5.4.20.0050.02111.47
5.4.10.0050.02011.47
5.4.00.0030.02311.21
5.3.290.0040.02511.90
5.3.280.0070.02311.85
5.3.270.0040.03111.86
5.3.260.0100.02711.86
5.3.250.0070.02711.86
5.3.240.0060.02111.86
5.3.230.0070.02111.85
5.3.220.0050.02211.83
5.3.210.0070.02411.84
5.3.200.0070.02011.83
5.3.190.0020.02311.84
5.3.180.0090.01911.83
5.3.170.0060.02111.83
5.3.160.0070.01811.83
5.3.150.0040.02211.83
5.3.140.0050.02211.83
5.3.130.0050.02311.83
5.3.120.0070.02211.83
5.3.110.0020.02511.82
5.3.100.0070.01711.56
5.3.90.0050.02211.54
5.3.80.0040.02311.53
5.3.70.0040.02211.53
5.3.60.0040.02311.53
5.3.50.0040.02411.50
5.3.40.0050.02011.49
5.3.30.0100.01911.47
5.3.20.0040.02011.36
5.3.10.0050.02011.34
5.3.00.0070.01911.33
5.2.170.0090.0309.18
5.2.160.0060.0289.18
5.2.150.0020.0339.18
5.2.140.0050.0309.18
5.2.130.0020.0329.14
5.2.120.0030.0299.14
5.2.110.0110.0229.15
5.2.100.0050.0299.14
5.2.90.0060.0299.14
5.2.80.0040.0319.14
5.2.70.0090.0279.14
5.2.60.0070.0299.09
5.2.50.0060.0309.05
5.2.40.0070.0279.03
5.2.30.0040.0339.01
5.2.20.0040.0319.01
5.2.10.0060.0468.93
5.2.00.0200.0348.79
5.1.60.0100.0348.07
5.1.50.0080.0338.06
5.1.40.0040.0298.05
5.1.30.0090.0238.40
5.1.20.0040.0288.42
5.1.10.0020.0288.14
5.1.00.0050.0258.14
5.0.50.0060.0196.62
5.0.40.0040.0196.47
5.0.30.0020.0336.29
5.0.20.0020.0206.27
5.0.10.0010.0226.23
5.0.00.0020.0336.23
4.4.90.0020.0164.77
4.4.80.0010.0184.75
4.4.70.0020.0164.75
4.4.60.0030.0154.75
4.4.50.0060.0124.77
4.4.40.0000.0314.71
4.4.30.0030.0154.76
4.4.20.0040.0174.85
4.4.10.0010.0214.85
4.4.00.0030.0254.76
4.3.110.0040.0154.67
4.3.100.0040.0144.67
4.3.90.0030.0144.63
4.3.80.0020.0264.58
4.3.70.0020.0154.63
4.3.60.0030.0154.63
4.3.50.0030.0174.63
4.3.40.0010.0284.54
4.3.30.0030.0153.28
4.3.20.0030.0213.26
4.3.10.0020.0163.22
4.3.00.0030.01328.29

preferences:
45.54 ms | 401 KiB | 5 Q