3v4l.org

run code in 300+ PHP versions simultaneously
<?php // int isn't a reserved word, right? // So this should work fine! $inxt = 7; // Let's try using it! var_dump($inxt); /* 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.40.0110.00718.71
8.3.30.0140.00018.79
8.3.20.0000.00820.21
8.3.10.0070.00023.61
8.3.00.0070.00020.89
8.2.170.0150.00022.96
8.2.160.0030.01020.47
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00720.79
8.2.110.0030.00622.25
8.2.100.0130.00317.66
8.2.90.0040.00419.11
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0060.00617.55
8.2.50.0040.00418.07
8.2.40.0000.00817.97
8.2.30.0060.00318.05
8.2.20.0040.00417.56
8.2.10.0030.00617.99
8.2.00.0080.00017.70
8.1.270.0060.00322.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.70
8.1.230.0040.00719.02
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.13
8.1.190.0040.00417.25
8.1.180.0030.00618.10
8.1.170.0080.00018.66
8.1.160.0030.00521.97
8.1.150.0070.00018.42
8.1.140.0000.00817.29
8.1.130.0040.00417.86
8.1.120.0000.00717.24
8.1.110.0000.00817.36
8.1.100.0030.00317.39
8.1.90.0000.00717.44
8.1.80.0000.00917.37
8.1.70.0000.00717.34
8.1.60.0060.00317.51
8.1.50.0030.00617.44
8.1.40.0050.00317.44
8.1.30.0110.00017.56
8.1.20.0040.00417.56
8.1.10.0000.00717.36
8.1.00.0000.00917.38
8.0.300.0070.00018.77
8.0.290.0030.00316.63
8.0.280.0030.00318.30
8.0.270.0000.00717.18
8.0.260.0030.00317.09
8.0.250.0070.00016.79
8.0.240.0050.00316.76
8.0.230.0070.00016.89
8.0.220.0000.00716.71
8.0.210.0030.00316.83
8.0.200.0000.00616.89
8.0.190.0040.00416.90
8.0.180.0030.00616.83
8.0.170.0000.00716.72
8.0.160.0040.00416.81
8.0.150.0040.00416.70
8.0.140.0070.00016.80
8.0.130.0030.00313.33
8.0.120.0040.00416.80
8.0.110.0040.00416.80
8.0.100.0080.00016.88
8.0.90.0040.00416.71
8.0.80.0090.00616.78
8.0.70.0000.00816.88
8.0.60.0000.00716.76
8.0.50.0050.00216.77
8.0.30.0070.01316.93
8.0.20.0160.00617.40
8.0.10.0070.00016.96
8.0.00.0100.00816.61
7.4.330.0020.00215.09
7.4.320.0030.00316.58
7.4.300.0060.00016.41
7.4.290.0030.00616.41
7.4.280.0030.00516.43
7.4.270.0000.00716.55
7.4.260.0080.00016.52
7.4.250.0050.00216.35
7.4.240.0020.00516.44
7.4.230.0070.00016.28
7.4.220.0130.01316.56
7.4.210.0070.01116.54
7.4.200.0000.00716.43
7.4.160.0090.00616.53
7.4.150.0050.01117.40
7.4.140.0130.00817.86
7.4.130.0080.00916.40
7.4.120.0140.00616.37
7.4.110.0180.00416.20
7.4.100.0140.00716.46
7.4.90.0070.01016.33
7.4.80.0100.01319.39
7.4.70.0090.00916.45
7.4.60.0120.00616.34
7.4.50.0040.00816.37
7.4.40.0130.00316.58
7.4.30.0040.01116.41
7.4.00.0050.01214.93
7.3.330.0060.00013.04
7.3.320.0050.00213.11
7.3.310.0030.00315.96
7.3.300.0000.00716.18
7.3.290.0090.00616.12
7.3.280.0070.00816.12
7.3.270.0030.01317.40
7.3.260.0120.00616.36
7.3.250.0120.00416.29
7.3.240.0160.00016.13
7.3.230.0150.00316.39
7.3.210.0070.01016.21
7.3.200.0100.00719.39
7.3.190.0130.00316.17
7.3.180.0090.00616.05
7.3.170.0100.00616.31
7.3.160.0100.00716.18
7.3.120.0050.01114.77
7.3.110.0080.00914.66
7.3.100.0070.00814.64
7.3.90.0070.00714.60
7.3.80.0060.00914.68
7.3.70.0070.00814.74
7.3.60.0030.01114.68
7.3.50.0060.00814.66
7.3.40.0080.00414.63
7.3.30.0020.01114.42
7.3.20.0070.00616.50
7.3.10.0070.00716.50
7.3.00.0080.00516.43
7.2.330.0090.00816.10
7.2.320.0030.01716.42
7.2.310.0130.01016.30
7.2.300.0120.00616.57
7.2.290.0110.00816.34
7.2.250.0050.01114.71
7.2.240.0080.00714.65
7.2.230.0080.00914.91
7.2.220.0100.00514.81
7.2.210.0090.00614.88
7.2.200.0030.01014.64
7.2.190.0060.00814.78
7.2.180.0070.00914.69
7.2.170.0050.00814.72
7.2.160.0030.01014.74
7.2.150.0080.00316.70
7.2.140.0000.01516.55
7.2.130.0090.00816.52
7.2.120.0130.00216.49
7.2.110.0080.00716.41
7.2.100.0130.00516.54
7.2.90.0130.00716.60
7.2.80.0060.01016.51
7.2.70.0110.00716.34
7.2.60.0100.00616.65
7.2.50.0100.01016.32
7.2.40.0170.00316.50
7.2.30.0110.00616.39
7.2.20.0130.00616.58
7.2.10.0130.00716.60
7.2.00.0130.00917.25
7.1.330.0050.00815.70
7.1.320.0070.00415.76
7.1.310.0020.01215.54
7.1.300.0030.01215.64
7.1.290.0050.01015.71
7.1.280.0080.00415.82
7.1.270.0070.00715.64
7.1.260.0030.00815.76
7.1.250.0040.00915.40
7.1.100.0070.00317.75
7.1.70.0000.01717.16
7.1.60.0060.01019.70
7.1.50.0200.01334.77
7.1.00.0030.07722.32
7.0.200.0030.00616.39
7.0.140.0130.06321.92
7.0.60.0070.07319.77
7.0.50.0070.08017.84
7.0.40.0030.05020.30
7.0.30.0500.04320.20
7.0.20.0230.06320.12
7.0.10.0100.08320.16
7.0.00.0070.05020.16
5.6.280.0100.07020.99
5.6.210.0070.04720.45
5.6.200.0070.08718.09
5.6.190.0070.05020.35
5.6.180.3300.05020.49
5.6.170.0170.05020.38
5.6.160.0070.06720.34
5.6.150.0070.07018.13
5.6.140.0070.03718.20
5.6.130.0070.05318.17
5.6.120.0100.04020.96
5.6.110.0030.08021.11
5.6.100.0030.06721.13
5.6.90.0030.09320.89
5.6.80.0070.03320.36
5.6.70.4170.03720.42
5.5.350.0270.07720.48
5.5.340.0030.04318.00
5.5.330.0070.04320.23
5.5.320.3530.05020.18
5.5.310.0400.06320.29
5.5.300.0070.08317.88
5.5.290.0030.04318.01
5.5.280.0030.04320.87
5.5.270.0170.06020.75
5.5.260.0070.03720.88
5.5.250.0100.08320.57
5.5.240.0270.07320.25
5.4.450.0170.04329.93
5.4.440.0270.04329.11
5.4.430.0330.04028.29
5.4.420.0430.04728.29
5.4.410.0400.04028.29
5.4.400.0530.03728.29
5.4.390.0470.03328.29
5.4.380.0230.04318.62
5.4.370.0130.05318.57
5.4.360.0230.04318.64
5.4.350.0230.04718.49
5.4.340.0100.06318.52
5.4.320.0080.04612.45
5.4.310.0060.03912.45
5.4.300.0170.02612.45
5.4.290.0100.03412.45
5.4.280.0080.03212.34
5.4.270.0120.03012.35
5.4.260.0090.03412.34
5.4.250.0090.03412.34
5.4.240.0060.03612.34
5.4.230.0080.03612.34
5.4.220.0040.03812.34
5.4.210.0060.03512.34
5.4.200.0080.03612.34
5.4.190.0070.03512.34
5.4.180.0060.03512.33
5.4.170.0060.03712.35
5.4.160.0040.03712.34
5.4.150.0050.03712.34
5.4.140.0070.03612.02
5.4.130.0080.03312.01
5.4.120.0060.03511.96
5.4.110.0080.03311.96
5.4.100.0070.03511.96
5.4.90.0070.03911.96
5.4.80.0070.03711.96
5.4.70.0040.04111.96
5.4.60.0060.03811.96
5.4.50.0100.03411.96
5.4.40.0100.03011.95
5.4.30.0090.03211.95
5.4.20.0070.03311.95
5.4.10.0070.03211.95
5.4.00.0040.03711.43
5.3.290.0050.04112.80
5.3.280.0060.03812.71
5.3.270.0040.04412.72
5.3.260.0090.03812.72
5.3.250.0080.03612.72
5.3.240.0040.03912.72
5.3.230.0060.04012.71
5.3.220.0050.03812.68
5.3.210.0080.03712.68
5.3.200.0090.03312.68
5.3.190.0050.03812.68
5.3.180.0080.03412.67
5.3.170.0020.04012.67
5.3.160.0080.03412.68
5.3.150.0040.03912.67
5.3.140.0070.03512.66
5.3.130.0100.05112.66
5.3.120.0070.05512.66
5.3.110.0070.05512.66
5.3.100.0050.05112.12
5.3.90.0140.04512.08
5.3.80.0080.04712.07
5.3.70.0090.04712.07
5.3.60.0110.04512.06
5.3.50.0080.04512.00
5.3.40.0080.03612.00
5.3.30.0100.03111.94
5.3.20.0060.03611.72
5.3.10.0050.03711.69
5.3.00.0060.03711.67
5.2.170.0040.0319.17
5.2.160.0050.0299.17
5.2.150.0030.0339.17
5.2.140.0030.0329.17
5.2.130.0070.0269.13
5.2.120.0060.0279.13
5.2.110.0050.0289.14
5.2.100.0040.0309.13
5.2.90.0050.0309.14
5.2.80.0040.0329.13
5.2.70.0040.0349.13
5.2.60.0050.0309.08
5.2.50.0030.0349.05
5.2.40.0070.0279.03
5.2.30.0030.0339.01
5.2.20.0060.0339.00
5.2.10.0020.0408.91
5.2.00.0070.0358.77
5.1.60.0050.0268.06
5.1.50.0030.0308.05
5.1.40.0060.0258.04
5.1.30.0100.0238.39
5.1.20.0090.0308.40
5.1.10.0040.0278.13
5.1.00.0060.0248.13
5.0.50.0040.0206.61
5.0.40.0040.0196.47
5.0.30.0020.0416.29
5.0.20.0030.0196.25
5.0.10.0050.0186.23
5.0.00.0040.0316.23
4.4.90.0040.0174.78
4.4.80.0050.0154.75
4.4.70.0030.0164.75
4.4.60.0030.0164.75
4.4.50.0010.0204.77
4.4.40.0080.0254.71
4.4.30.0070.0164.76
4.4.20.0030.0154.84
4.4.10.0040.0174.85
4.4.00.0020.0264.76
4.3.110.0050.0154.67
4.3.100.0020.0154.67
4.3.90.0030.0134.63
4.3.80.0030.0234.59
4.3.70.0040.0134.63
4.3.60.0030.0144.63
4.3.50.0040.0144.62
4.3.40.0020.0254.54
4.3.30.0010.0173.28
4.3.20.0020.0163.25
4.3.10.0010.0163.22
4.3.00.0070.01328.29

preferences:
41.16 ms | 400 KiB | 5 Q