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)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.0080.00618.43
8.3.50.0250.00521.93
8.3.40.0030.01018.66
8.3.30.0030.01018.92
8.3.20.0000.00720.21
8.3.10.0070.00023.61
8.3.00.0060.00319.66
8.2.180.0120.00316.32
8.2.170.0150.00022.96
8.2.160.0070.01020.52
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0070.00020.98
8.2.110.0040.00721.18
8.2.100.0040.00817.72
8.2.90.0060.00317.91
8.2.80.0050.00317.97
8.2.70.0080.00017.68
8.2.60.0030.00617.68
8.2.50.0070.00018.16
8.2.40.0070.00020.42
8.2.30.0000.00719.10
8.2.20.0060.00317.64
8.2.10.0040.00417.95
8.2.00.0070.00017.58
8.1.280.0040.01125.92
8.1.270.0040.00423.70
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0130.00020.24
8.1.230.0060.00621.04
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00818.80
8.1.150.0000.00820.12
8.1.140.0000.00717.37
8.1.130.0000.00717.73
8.1.120.0090.00017.23
8.1.110.0000.00817.37
8.1.100.0000.01017.36
8.1.90.0030.00317.41
8.1.80.0040.00417.28
8.1.70.0070.00017.38
8.1.60.0080.00017.52
8.1.50.0040.00417.49
8.1.40.0000.00817.45
8.1.30.0040.00417.47
8.1.20.0000.00717.40
8.1.10.0030.00517.39
8.1.00.0120.00017.38
8.0.300.0000.00719.71
8.0.290.0040.00416.63
8.0.280.0030.00318.41
8.0.270.0000.00717.13
8.0.260.0030.00317.02
8.0.250.0080.00316.89
8.0.240.0020.00516.92
8.0.230.0030.00316.93
8.0.220.0000.00716.92
8.0.210.0030.00316.85
8.0.200.0080.00017.00
8.0.190.0000.00716.93
8.0.180.0060.00616.91
8.0.170.0050.00316.91
8.0.160.0070.00017.00
8.0.150.0000.00716.86
8.0.140.0100.00016.87
8.0.130.0030.00313.35
8.0.120.0040.00416.78
8.0.110.0050.00216.83
8.0.100.0000.00716.83
8.0.90.0020.00516.94
8.0.80.0060.01216.93
8.0.70.0050.00216.81
8.0.60.0020.00516.70
8.0.50.0000.00716.86
8.0.30.0070.01416.93
8.0.20.0150.00617.40
8.0.10.0040.00417.05
8.0.00.0050.01216.69
7.4.330.0000.00515.00
7.4.320.0070.00016.53
7.4.300.0040.00416.45
7.4.290.0030.00316.34
7.4.280.0080.00116.50
7.4.270.0040.00416.53
7.4.260.0040.00416.41
7.4.250.0000.00716.48
7.4.240.0040.00416.44
7.4.230.0030.00316.61
7.4.220.0130.00316.28
7.4.210.0200.00016.52
7.4.200.0000.00716.52
7.4.160.0000.01516.65
7.4.150.0060.01217.40
7.4.140.0080.00817.86
7.4.130.0070.01016.39
7.4.120.0110.00816.48
7.4.110.0080.01516.34
7.4.100.0190.00016.29
7.4.90.0090.00916.38
7.4.80.0090.01619.39
7.4.70.0070.01016.38
7.4.60.0060.01316.36
7.4.50.0040.00416.28
7.4.40.0120.00316.45
7.4.30.0100.00516.33
7.4.10.0030.01014.52
7.4.00.0030.01314.73
7.3.330.0000.00613.08
7.3.320.0030.00313.04
7.3.310.0060.00016.18
7.3.300.0000.00616.16
7.3.290.0070.00716.27
7.3.280.0090.01016.24
7.3.270.0110.00917.40
7.3.260.0070.01716.45
7.3.250.0050.01116.17
7.3.240.0120.00616.54
7.3.230.0030.01316.41
7.3.210.0080.00816.19
7.3.200.0090.01319.39
7.3.190.0100.00616.36
7.3.180.0070.01016.20
7.3.170.0090.00616.27
7.3.160.0030.01316.07
7.3.130.0090.00614.82
7.3.120.0070.00914.64
7.3.110.0100.01014.79
7.3.100.0060.00914.46
7.3.90.0040.01414.71
7.3.80.0030.00614.75
7.3.70.0060.00814.63
7.3.60.0090.00614.54
7.3.50.0080.01214.54
7.3.40.0110.00714.52
7.3.30.0080.00314.68
7.3.20.0090.00616.39
7.3.10.0070.00516.51
7.3.00.0030.01116.66
7.2.330.0130.01016.39
7.2.320.0000.01616.45
7.2.310.0140.00316.47
7.2.300.0100.00516.31
7.2.290.0060.01016.44
7.2.260.0100.00615.07
7.2.250.0040.01515.00
7.2.240.0100.00315.04
7.2.230.0030.01414.81
7.2.220.0030.01315.14
7.2.210.0060.00914.95
7.2.200.0060.01214.64
7.2.190.0070.01415.03
7.2.180.0130.00614.79
7.2.170.0140.00314.64
7.2.160.0040.01115.14
7.2.150.0070.00416.81
7.2.140.0140.00316.64
7.2.130.0100.00616.82
7.2.120.0060.00716.77
7.2.110.0040.00916.71
7.2.100.0050.00916.78
7.2.90.0040.01316.60
7.2.80.0100.00516.91
7.2.70.0050.00916.82
7.2.60.0100.00616.76
7.2.50.0070.00916.60
7.2.40.0040.01516.89
7.2.30.0090.00716.70
7.2.20.0060.00816.75
7.2.10.0100.00816.83
7.2.00.0100.00317.52
7.1.330.0030.01215.77
7.1.320.0100.00315.82
7.1.310.0030.00615.66
7.1.300.0080.00415.75
7.1.290.0060.01015.57
7.1.280.0030.00915.86
7.1.270.0070.00715.73
7.1.260.0000.00915.70
7.1.250.0130.00215.61
7.1.240.0030.01015.75
7.1.230.0030.00915.68
7.1.220.0000.01315.76
7.1.210.0130.00015.81
7.1.200.0100.00315.84
7.1.190.0000.01715.74
7.1.180.0000.01015.63
7.1.170.0130.00015.89
7.1.160.0030.00615.89
7.1.150.0000.01415.56
7.1.140.0070.00715.41
7.1.130.0030.01215.81
7.1.120.0080.00415.81
7.1.110.0070.00715.88
7.1.100.0020.00916.87
7.1.90.0000.01715.74
7.1.80.0060.01015.81
7.1.70.0030.00716.27
7.1.60.0100.01117.73
7.1.50.0100.00816.42
7.1.40.0030.01015.71
7.1.30.0100.00615.55
7.1.20.0030.01015.83
7.1.10.0070.00315.79
7.1.00.0050.03719.16
7.0.330.0110.00415.43
7.0.320.0040.00715.45
7.0.310.0000.01315.15
7.0.300.0110.00015.30
7.0.290.0030.00715.41
7.0.280.0030.01015.48
7.0.270.0030.01215.51
7.0.260.0090.00615.39
7.0.250.0040.00815.48
7.0.240.0050.00815.20
7.0.230.0030.00915.31
7.0.220.0060.00615.33
7.0.210.0110.00415.46
7.0.200.0440.00515.12
7.0.190.0070.00715.46
7.0.180.0030.00615.43
7.0.170.0080.00415.41
7.0.160.0030.00715.52
7.0.150.0070.00715.37
7.0.140.0050.03818.60
7.0.130.0050.00315.16
7.0.120.0000.01515.50
7.0.110.0030.00915.40
7.0.100.0030.01015.57
7.0.90.0090.00915.18
7.0.80.0000.00915.23
7.0.70.0000.01215.43
7.0.60.0100.04217.66
7.0.50.0050.02516.70
7.0.40.0160.02716.75
7.0.30.0120.05016.82
7.0.20.0220.04016.68
7.0.10.0160.03416.73
7.0.00.0070.04616.76
5.6.400.0030.00914.04
5.6.390.0000.00914.23
5.6.380.0000.01514.52
5.6.370.0030.00813.89
5.6.360.0000.01114.18
5.6.350.0070.00714.34
5.6.340.0090.00614.45
5.6.330.0040.01114.06
5.6.320.0070.00314.37
5.6.310.0090.00914.52
5.6.300.0100.00313.90
5.6.290.0070.01013.85
5.6.280.0000.04217.64
5.6.270.0080.00414.18
5.6.260.0040.01413.97
5.6.250.0090.00614.34
5.6.240.0040.01514.25
5.6.230.0000.00814.12
5.6.220.0100.00314.52
5.6.210.0050.04317.42
5.6.200.0050.02316.02
5.6.190.0020.03617.20
5.6.180.0020.03017.15
5.6.170.0130.02317.39
5.6.160.0020.02817.36
5.6.150.0100.03716.08
5.6.140.0020.02816.24
5.6.130.0050.02416.28
5.6.120.0050.04817.71
5.6.110.0080.04017.63
5.6.100.0060.02317.66
5.6.90.0090.03317.68
5.6.80.0040.03617.16
5.6.70.1870.02117.22
5.6.60.0060.00614.38
5.6.50.0000.01914.29
5.6.40.0070.00714.13
5.6.30.0060.00614.00
5.6.20.0030.01014.28
5.6.10.0030.01014.21
5.6.00.0030.01014.24
5.5.380.0040.00414.14
5.5.370.0040.00714.13
5.5.360.0080.00414.19
5.5.350.0080.04517.17
5.5.340.0010.04816.07
5.5.330.0070.03817.00
5.5.320.0160.02317.21
5.5.310.0150.03217.13
5.5.300.0030.04715.95
5.5.290.0020.04516.15
5.5.280.0020.04717.49
5.5.270.0080.03117.44
5.5.260.0080.04317.44
5.5.250.0120.04217.34
5.5.240.0080.03817.00
5.5.230.0090.00314.06
5.5.220.0030.00814.17
5.5.210.0090.00614.18
5.5.200.0070.00713.92
5.5.190.0060.00614.06
5.5.180.0060.00614.28
5.5.170.0060.00913.79
5.5.160.0030.00714.04
5.5.150.0040.01113.91
5.5.140.0030.00814.25
5.5.130.0110.00413.78
5.5.120.0060.00614.10
5.5.110.0050.00313.89
5.5.100.0030.01014.05
5.5.90.0090.00314.09
5.5.80.0070.00714.27
5.5.70.0060.00913.77
5.5.60.0030.01113.98
5.5.50.0080.00414.25
5.5.40.0030.01013.88
5.5.30.0130.00013.97
5.5.20.0090.00314.33
5.5.10.0000.00813.94
5.5.00.0030.00714.34
5.4.450.0330.02015.30
5.4.440.0380.02914.98
5.4.430.0230.03115.15
5.4.420.0310.02515.04
5.4.410.0180.02315.02
5.4.400.0160.02615.14
5.4.390.0320.02214.92
5.4.380.0140.02814.66
5.4.370.0070.03014.66
5.4.360.0080.03414.62
5.4.350.0130.02814.73
5.4.340.0120.02514.66
5.4.330.0000.00710.75
5.4.320.0020.02311.67
5.4.310.0070.01811.72
5.4.300.0090.01811.72
5.4.290.0080.02711.54
5.4.280.0050.02411.51
5.4.270.0040.02311.62
5.4.260.0020.02511.56
5.4.250.0050.02211.58
5.4.240.0050.02011.68
5.4.230.0070.01911.52
5.4.220.0030.02311.64
5.4.210.0050.02011.51
5.4.200.0040.02311.66
5.4.190.0040.01911.48
5.4.180.0080.01911.53
5.4.170.0040.02211.52
5.4.160.0050.01911.49
5.4.150.0050.02111.52
5.4.140.0080.01811.44
5.4.130.0070.02111.33
5.4.120.0070.01911.46
5.4.110.0060.02111.42
5.4.100.0060.02211.46
5.4.90.0040.02311.49
5.4.80.0040.02311.40
5.4.70.0040.02311.33
5.4.60.0060.02011.38
5.4.50.0050.02011.30
5.4.40.0060.02011.29
5.4.30.0070.02011.38
5.4.20.0020.02511.45
5.4.10.0080.01711.29
5.4.00.0080.02711.04
5.3.290.0020.02411.72
5.3.280.0050.02211.67
5.3.270.0060.03111.68
5.3.260.0040.02511.68
5.3.250.0050.02111.68
5.3.240.0020.02511.67
5.3.230.0050.02611.67
5.3.220.0070.01911.66
5.3.210.0060.02211.66
5.3.200.0020.02511.66
5.3.190.0070.01811.65
5.3.180.0060.02211.65
5.3.170.0070.02011.65
5.3.160.0050.02611.65
5.3.150.0030.02511.65
5.3.140.0080.02611.65
5.3.130.0060.02711.64
5.3.120.0040.02311.65
5.3.110.0040.02411.65
5.3.100.0040.02211.38
5.3.90.0020.02411.36
5.3.80.0030.02311.35
5.3.70.0060.02111.35
5.3.60.0060.02111.35
5.3.50.0080.03011.32
5.3.40.0050.02611.32
5.3.30.0090.02411.29
5.3.20.0070.01911.18
5.3.10.0050.02111.16
5.3.00.0080.01811.15
5.2.170.0060.0309.18
5.2.160.0070.0289.18
5.2.150.0040.0319.18
5.2.140.0020.0349.18
5.2.130.0060.0289.13
5.2.120.0070.0279.14
5.2.110.0070.0279.14
5.2.100.0040.0299.14
5.2.90.0080.0259.14
5.2.80.0040.0309.13
5.2.70.0050.0299.14
5.2.60.0060.0309.09
5.2.50.0020.0339.05
5.2.40.0060.0279.03
5.2.30.0060.0289.02
5.2.20.0070.0269.00
5.2.10.0040.0288.93
5.2.00.0040.0308.79
5.1.60.0020.0268.06
5.1.50.0050.0248.06
5.1.40.0040.0258.05
5.1.30.0070.0248.40
5.1.20.0050.0308.42
5.1.10.0060.0258.14
5.1.00.0040.0258.14
5.0.50.0040.0206.63
5.0.40.0030.0196.48
5.0.30.0020.0326.30
5.0.20.0040.0186.27
5.0.10.0050.0186.24
5.0.00.0010.0336.23
4.4.90.0020.0164.78
4.4.80.0020.0154.76
4.4.70.0040.0144.76
4.4.60.0020.0154.75
4.4.50.0030.0144.77
4.4.40.0030.0254.71
4.4.30.0050.0134.76
4.4.20.0020.0164.84
4.4.10.0040.0144.85
4.4.00.0010.0264.76
4.3.110.0040.0144.67
4.3.100.0010.0164.66
4.3.90.0020.0154.63
4.3.80.0040.0234.58
4.3.70.0070.0114.63
4.3.60.0020.0154.63
4.3.50.0030.0164.63
4.3.40.0010.0274.54
4.3.30.0060.0123.28
4.3.20.0010.0173.26
4.3.10.0000.0173.22
4.3.00.0070.01044.26

preferences:
41.34 ms | 401 KiB | 5 Q