3v4l.org

run code in 300+ PHP versions simultaneously
<?php // int isn't a reserved word, right? // So this should work fine! $inte = 7; // Let's try using it! var_dump($inte); /* 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.0120.00316.38
8.3.50.0070.01021.92
8.3.40.0070.00718.63
8.3.30.0100.00318.88
8.3.20.0030.00320.07
8.3.10.0000.00823.64
8.3.00.0080.00020.82
8.2.180.0060.00918.41
8.2.170.0070.01622.96
8.2.160.0030.01020.30
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00520.81
8.2.110.0060.00322.24
8.2.100.0080.00420.38
8.2.90.0100.00018.85
8.2.80.0080.00017.97
8.2.70.0000.01117.50
8.2.60.0060.00317.90
8.2.50.0100.00318.07
8.2.40.0070.00018.22
8.2.30.0000.00818.13
8.2.20.0040.00417.65
8.2.10.0040.00417.86
8.2.00.0000.00717.71
8.1.280.0140.00025.92
8.1.270.0000.00722.14
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00723.98
8.1.230.0110.00018.94
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.10
8.1.180.0070.00018.10
8.1.170.0050.00318.59
8.1.160.0020.00521.93
8.1.150.0040.00418.52
8.1.140.0030.00517.43
8.1.130.0070.00017.75
8.1.120.0070.00017.38
8.1.110.0040.00417.42
8.1.100.0040.00417.34
8.1.90.0080.00017.41
8.1.80.0040.00417.39
8.1.70.0050.00317.26
8.1.60.0040.00417.48
8.1.50.0000.00817.34
8.1.40.0000.00717.47
8.1.30.0000.00817.61
8.1.20.0030.00617.56
8.1.10.0000.00717.43
8.1.00.0030.00517.33
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.30
8.0.270.0000.00717.05
8.0.260.0030.00317.25
8.0.250.0000.00616.82
8.0.240.0040.00416.79
8.0.230.0050.00216.89
8.0.220.0000.00716.73
8.0.210.0030.00516.71
8.0.200.0070.00016.76
8.0.190.0050.00316.91
8.0.180.0040.00416.85
8.0.170.0050.00216.74
8.0.160.0070.00016.85
8.0.150.0040.00416.69
8.0.140.0070.00016.67
8.0.130.0050.00013.25
8.0.120.0000.00816.71
8.0.110.0040.00416.79
8.0.100.0040.00416.64
8.0.90.0040.00416.87
8.0.80.0100.01016.79
8.0.70.0050.00316.77
8.0.60.0070.00016.71
8.0.50.0020.00516.64
8.0.30.0090.00916.88
8.0.20.0110.00717.40
8.0.10.0040.00316.79
8.0.00.0110.00616.52
7.4.330.0020.00215.03
7.4.320.0060.00016.44
7.4.300.0060.00016.44
7.4.290.0070.00016.55
7.4.280.0040.00416.33
7.4.270.0000.00716.42
7.4.260.0030.00616.32
7.4.250.0040.00416.39
7.4.240.0030.00316.50
7.4.230.0030.00316.32
7.4.220.0100.01616.57
7.4.210.0110.00316.41
7.4.200.0030.00316.32
7.4.160.0160.00016.51
7.4.150.0030.01317.40
7.4.140.0100.00817.86
7.4.130.0090.00716.36
7.4.120.0110.00816.36
7.4.110.0060.01016.50
7.4.100.0070.01116.48
7.4.90.0080.00816.32
7.4.80.0090.00919.39
7.4.70.0140.00516.31
7.4.60.0110.00616.27
7.4.50.0060.00316.01
7.4.40.0070.00716.50
7.4.30.0110.00516.48
7.4.00.0040.01114.54
7.3.330.0050.00012.86
7.3.320.0000.00513.02
7.3.310.0000.00716.26
7.3.300.0070.00016.12
7.3.290.0000.01416.17
7.3.280.0060.01116.11
7.3.270.0110.00617.40
7.3.260.0190.00316.38
7.3.250.0090.00916.33
7.3.240.0080.00816.27
7.3.230.0070.01016.39
7.3.210.0040.01316.16
7.3.200.0030.01419.39
7.3.190.0100.00716.21
7.3.180.0100.00716.14
7.3.170.0130.00316.27
7.3.160.0160.00316.25
7.3.120.0130.00314.59
7.2.330.0100.01416.21
7.2.320.0060.01116.34
7.2.310.0130.00316.52
7.2.300.0150.03216.20
7.2.290.0150.00316.13
7.2.110.0150.01216.39
7.2.100.0130.00916.35
7.2.90.0400.00916.46
7.2.80.0150.01216.55
7.2.70.0200.01216.65
7.2.60.0170.01316.54
7.2.50.0450.00416.82
7.2.40.0200.01116.43
7.2.30.0390.01316.75
7.2.20.0150.01516.78
7.2.10.0400.00816.77
7.2.00.0140.00617.95
7.1.230.0360.00315.50
7.1.220.0280.01415.77
7.1.210.0180.00915.71
7.1.200.0120.01015.70
7.1.190.0130.01315.61
7.1.180.0230.00515.77
7.1.170.0440.00715.71
7.1.160.0180.01115.82
7.1.150.0170.00815.65
7.1.140.0140.00915.70
7.1.130.0150.01115.49
7.1.120.0350.01115.64
7.1.110.0130.01315.67
7.1.100.0100.01116.78
7.1.90.0200.00615.56
7.1.80.0350.00915.77
7.1.70.0340.00716.33
7.1.60.0160.01217.77
7.1.50.0160.01316.34
7.1.40.0300.00915.91
7.1.30.0160.01115.83
7.1.20.0180.01315.86
7.1.10.0280.01315.64
7.1.00.0250.03819.12
7.0.310.0420.00315.38
7.0.300.0230.00515.36
7.0.290.0380.00915.06
7.0.280.0170.00915.30
7.0.270.0350.01615.27
7.0.260.0160.00815.29
7.0.250.0270.01015.49
7.0.240.0220.00315.35
7.0.230.0280.00815.20
7.0.220.0250.00015.26
7.0.210.0100.01015.24
7.0.200.0090.00815.99
7.0.190.0540.00715.42
7.0.180.0170.00615.45
7.0.170.0470.00415.32
7.0.160.0140.00815.56
7.0.150.0180.01515.30
7.0.140.0200.04218.62
7.0.130.0470.01515.14
7.0.120.0360.01015.15
7.0.110.0360.00815.34
7.0.100.0280.01615.34
7.0.90.0590.00815.36
7.0.80.0400.00415.10
7.0.70.0350.00614.85
7.0.60.0170.03017.46
7.0.50.0170.03716.48
7.0.40.0120.04416.79
7.0.30.0410.03216.77
7.0.20.0260.02716.71
7.0.10.0190.04016.84
7.0.00.0120.02516.78
5.6.380.0170.00713.93
5.6.370.0200.00314.03
5.6.360.0150.00914.31
5.6.350.0120.01214.07
5.6.340.0180.01014.27
5.6.330.0170.01014.48
5.6.320.0140.01714.09
5.6.310.0120.01214.18
5.6.300.0350.01713.77
5.6.290.0350.00913.93
5.6.280.0230.04017.53
5.6.270.0240.00813.95
5.6.260.0350.00413.87
5.6.250.0180.01314.13
5.6.240.0250.01114.33
5.6.230.0390.00413.89
5.6.220.0150.01414.17
5.6.210.0190.03017.34
5.6.200.0200.03516.03
5.6.190.0110.04717.40
5.6.180.1840.02417.37
5.6.170.0210.04417.29
5.6.160.0080.02917.33
5.6.150.0110.04616.21
5.6.140.0130.03016.08
5.6.130.0110.04416.15
5.6.120.0130.04317.70
5.6.110.0170.04217.53
5.6.100.0100.04917.65
5.6.90.0100.05017.64
5.6.80.0120.02017.30
5.6.70.2220.01617.16
5.6.60.0230.00413.87
5.6.50.0170.00914.35
5.6.40.0150.01013.95
5.6.30.0220.00313.94
5.6.20.0140.00914.05
5.6.10.0130.01014.07
5.6.00.0160.01013.92
5.5.380.0210.00910.79
5.5.370.0100.00510.78
5.5.360.0050.01210.85
5.5.350.0160.04215.55
5.5.340.0070.02214.40
5.5.330.0090.02615.64
5.5.320.0250.03715.56
5.5.310.0220.04315.48
5.5.300.0100.02014.34
5.5.290.0070.04714.45
5.5.280.0060.03815.83
5.5.270.0080.04215.91
5.5.260.0120.04015.88
5.5.250.0110.02915.63
5.5.240.0150.04315.55
5.5.230.0150.00010.96
5.5.220.0050.01010.75
5.5.210.0100.00610.87
5.5.200.0150.00010.93
5.5.190.0110.00510.83
5.5.180.0040.01210.94
5.5.170.0040.01914.10
5.5.160.0110.00410.63
5.5.150.0050.01511.02
5.5.140.0110.00510.97
5.5.130.0110.00410.86
5.5.120.0070.00710.48
5.5.110.0090.00310.98
5.5.100.0060.01010.65
5.5.90.0120.00310.86
5.5.80.0120.00610.52
5.5.70.0100.00710.87
5.5.60.0070.01110.56
5.5.50.0170.00010.91
5.5.40.0170.00010.87
5.5.30.0110.00610.72
5.5.20.0130.00510.68
5.5.10.0000.01410.59
5.5.00.0130.00410.63
5.4.450.0390.01820.45
5.4.440.0160.02520.52
5.4.430.0290.02119.90
5.4.420.0150.02519.57
5.4.410.0220.02219.48
5.4.400.0260.01419.52
5.4.390.0170.02519.41
5.4.380.0300.02714.83
5.4.370.0210.02914.75
5.4.360.0310.03214.80
5.4.350.0130.03714.65
5.4.340.0170.03214.67
5.4.330.0140.00310.64
5.4.320.0050.02311.65
5.4.310.0100.02411.65
5.4.300.0090.02311.50
5.4.290.0100.01911.52
5.4.280.0070.02111.40
5.4.270.0090.02111.54
5.4.260.0080.02211.57
5.4.250.0080.02411.63
5.4.240.0100.02111.43
5.4.230.0100.02111.54
5.4.220.0100.02011.54
5.4.210.0060.02211.44
5.4.200.0090.02111.56
5.4.190.0090.01911.55
5.4.180.0060.02211.51
5.4.170.0070.02511.44
5.4.160.0070.02111.51
5.4.150.0100.01911.52
5.4.140.0060.02411.29
5.4.130.0080.02111.37
5.4.120.0090.02011.37
5.4.110.0110.01911.33
5.4.100.0070.02211.40
5.4.90.0080.02211.55
5.4.80.0090.02011.33
5.4.70.0080.02011.50
5.4.60.0040.02211.46
5.4.50.0080.02011.37
5.4.40.0070.02211.45
5.4.30.0060.02411.28
5.4.20.0080.01911.35
5.4.10.0070.02011.42
5.4.00.0070.02211.18
5.3.290.0100.02211.61
5.3.280.0060.02511.54
5.3.270.0100.02211.55
5.3.260.0080.02211.56
5.3.250.0110.01911.55
5.3.240.0080.02211.55
5.3.230.0090.02211.54
5.3.220.0090.02411.53
5.3.210.0020.02811.53
5.3.200.0110.02011.53
5.3.190.0070.02211.53
5.3.180.0070.02111.56
5.3.170.0110.01611.56
5.3.160.0090.02011.53
5.3.150.0050.02511.55
5.3.140.0090.02011.52
5.3.130.0050.02311.52
5.3.120.0100.02011.52
5.3.110.0080.02111.53
5.3.100.0060.02311.25
5.3.90.0090.02111.23
5.3.80.0050.02511.23
5.3.70.0090.02211.23
5.3.60.0060.02411.22
5.3.50.0070.02211.19
5.3.40.0120.01911.19
5.3.30.0080.02311.16
5.3.20.0070.02811.05
5.3.10.0080.02411.04
5.3.00.0050.02411.03
5.2.170.0040.0219.78
5.2.160.0070.0179.78
5.2.150.0040.0209.78
5.2.140.0080.0149.78
5.2.130.0040.0199.76
5.2.120.0070.0179.76
5.2.110.0080.0159.76
5.2.100.0060.0179.76
5.2.90.0090.0149.76
5.2.80.0040.0209.76
5.2.70.0070.0169.76
5.2.60.0040.0199.73
5.2.50.0050.0189.72
5.2.40.0070.0209.71
5.2.30.0080.0179.69
5.2.20.0070.0179.69
5.2.10.0050.0189.65
5.2.00.0090.0159.58
5.1.60.0040.0159.22
5.1.50.0050.0159.22
5.1.40.0050.0169.21
5.1.30.0030.0169.38
5.1.20.0080.0149.39
5.1.10.0060.0149.26
5.1.00.0050.0159.26
5.0.50.0020.0178.50
5.0.40.0050.0128.43
5.0.30.0040.0188.33
5.0.20.0050.0138.32
5.0.10.0050.0108.31
5.0.00.0020.0228.30
4.4.90.0040.0087.58
4.4.80.0040.0097.57
4.4.70.0050.0077.57
4.4.60.0020.0117.57
4.4.50.0040.0097.58
4.4.40.0040.0157.54
4.4.30.0040.0107.57
4.4.20.0030.0097.61
4.4.10.0030.0107.62
4.4.00.0040.0137.57
4.3.110.0010.0127.53
4.3.100.0040.0097.53
4.3.90.0040.0087.51
4.3.80.0040.0137.48
4.3.70.0050.0097.51
4.3.60.0050.0097.50
4.3.50.0030.0117.50
4.3.40.0050.0157.46
4.3.30.0020.0116.83
4.3.20.0030.0106.82
4.3.10.0010.0126.80
4.3.00.0040.00819.33

preferences:
41.8 ms | 401 KiB | 5 Q