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(0 + int); /* 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.70.0100.00716.58
8.3.60.0070.01018.34
8.3.50.0110.00721.86
8.3.40.0170.00318.71
8.3.30.0100.00318.92
8.3.20.0040.00420.34
8.3.10.0040.00423.48
8.3.00.0070.00020.98
8.2.180.0040.01116.50
8.2.170.0140.00722.96
8.2.160.0100.00320.35
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0070.01126.16
8.2.120.0000.00820.80
8.2.110.0000.01122.11
8.2.100.0090.00320.48
8.2.90.0060.00618.97
8.2.80.0050.00317.97
8.2.70.0070.00317.50
8.2.60.0050.00517.68
8.2.50.0030.00618.07
8.2.40.0040.00419.88
8.2.30.0070.00318.18
8.2.20.0000.00817.62
8.2.10.0070.00018.04
8.2.00.0000.00717.55
8.1.280.0040.01425.92
8.1.270.0080.00023.83
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0000.01219.14
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0040.00416.88
8.1.180.0060.00318.10
8.1.170.0040.00418.38
8.1.160.0030.00521.86
8.1.150.0050.00218.61
8.1.140.0020.00517.43
8.1.130.0000.00717.77
8.1.120.0000.00717.45
8.1.110.0050.00317.34
8.1.100.0000.00817.30
8.1.90.0030.00317.42
8.1.80.0070.00017.32
8.1.70.0040.00417.27
8.1.60.0040.00417.54
8.1.50.0000.00817.43
8.1.40.0030.00617.33
8.1.30.0050.00317.54
8.1.20.0050.00317.55
8.1.10.0000.00817.38
8.1.00.0000.00817.31
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0050.00218.25
8.0.270.0030.00317.26
8.0.260.0000.00817.20
8.0.250.0000.00716.91
8.0.240.0070.00016.75
8.0.230.0040.00416.77
8.0.220.0030.00316.79
8.0.210.0060.00316.72
8.0.200.0030.00316.75
8.0.190.0000.00716.88
8.0.180.0050.00616.73
8.0.170.0050.00316.74
8.0.160.0070.00016.70
8.0.150.0030.00616.77
8.0.140.0000.00716.81
8.0.130.0000.00513.23
8.0.120.0070.00016.76
8.0.110.0040.00416.69
8.0.100.0070.00016.70
8.0.90.0050.00316.77
8.0.80.0060.01616.75
8.0.70.0000.00816.89
8.0.60.0070.00016.61
8.0.50.0070.00016.76
8.0.30.0110.01016.96
8.0.20.0150.00417.40
8.0.10.0030.00616.93
8.0.00.0050.01516.62
7.4.330.0000.00515.00
7.4.320.0000.00716.55
7.4.300.0000.00616.34
7.4.290.0030.00316.43
7.4.280.0040.00416.43
7.4.270.0030.00316.53
7.4.260.0040.00416.38
7.4.250.0040.00416.46
7.4.240.0040.00416.38
7.4.230.0030.00316.24
7.4.220.0100.01016.64
7.4.210.0060.01516.41
7.4.200.0000.00816.55
7.4.160.0160.00016.56
7.4.150.0150.00917.40
7.4.140.0150.00717.86
7.4.130.0100.00816.37
7.4.120.0100.01016.38
7.4.110.0070.01016.60
7.4.100.0060.01216.33
7.4.90.0090.00616.36
7.4.80.0210.00319.39
7.4.70.0040.01216.54
7.4.60.0070.01016.46
7.4.50.0020.00216.25
7.4.40.0120.00916.36
7.4.30.0100.00616.32
7.4.00.0030.01414.86
7.3.330.0020.00212.99
7.3.320.0000.00513.10
7.3.310.0000.00716.15
7.3.300.0000.00716.16
7.3.290.0030.01116.31
7.3.280.0070.01116.23
7.3.270.0110.00517.40
7.3.260.0130.00616.45
7.3.250.0110.00716.38
7.3.240.0120.00616.49
7.3.230.0100.00716.39
7.3.210.0170.00016.33
7.3.200.0060.01119.39
7.3.190.0120.00816.16
7.3.180.0100.00716.16
7.3.170.0040.01116.38
7.3.160.0080.00816.21
7.3.120.0060.00914.76
7.3.110.0120.00314.67
7.3.100.0040.01114.94
7.3.90.0100.00714.70
7.3.80.0080.00814.77
7.3.70.0100.00614.61
7.3.60.0100.00614.39
7.3.50.0090.00614.40
7.3.40.0030.00914.66
7.3.30.0000.01114.84
7.3.20.0070.00716.74
7.3.10.0110.00616.50
7.3.00.0080.00516.43
7.2.330.0080.00816.64
7.2.320.0090.00916.64
7.2.310.0120.00916.45
7.2.300.0100.00716.52
7.2.290.0060.01016.41
7.2.240.0130.00314.83
7.2.230.0040.01114.78
7.2.220.0030.01114.81
7.2.210.0030.01214.73
7.2.200.0000.01115.13
7.2.190.0060.00914.82
7.2.180.0120.00315.00
7.2.170.0030.01315.00
7.2.160.0070.00714.99
7.2.150.0060.00916.83
7.2.140.0060.00916.96
7.2.130.0020.00716.74
7.2.120.0050.01116.62
7.2.110.0060.00716.70
7.2.100.0080.00516.83
7.2.90.0050.00816.73
7.2.80.0030.00916.78
7.2.70.0030.01216.56
7.2.60.0080.00816.80
7.2.50.0050.01116.88
7.2.40.0070.01116.56
7.2.30.0070.00716.65
7.2.20.0050.01216.64
7.2.10.0070.00816.90
7.2.00.0080.00617.77
7.1.330.0060.00715.82
7.1.320.0070.00415.66
7.1.310.0090.00615.52
7.1.300.0090.00615.63
7.1.290.0060.00915.77
7.1.280.0060.01015.57
7.1.270.0070.00715.31
7.1.260.0030.01315.66
7.1.250.0060.00615.56
7.1.240.0060.00615.76
7.1.230.0050.00515.34
7.1.220.0080.00015.74
7.1.210.0000.00815.64
7.1.200.0090.00515.59
7.1.190.0100.00315.54
7.1.180.0080.00315.59
7.1.170.0000.01315.52
7.1.160.0070.00715.72
7.1.150.0070.00315.52
7.1.140.0080.00415.83
7.1.130.0030.01015.43
7.1.120.0030.00515.36
7.1.110.0040.00715.45
7.1.100.0090.00316.73
7.1.90.0030.01015.74
7.1.80.0100.00015.79
7.1.70.0070.00516.43
7.1.60.0070.01017.67
7.1.50.0090.00816.06
7.1.40.0040.00815.44
7.1.30.0060.00615.63
7.1.20.0000.01015.63
7.1.10.0000.01015.84
7.1.00.0030.04218.95
7.0.330.0080.00415.44
7.0.320.0100.00015.20
7.0.310.0050.00315.05
7.0.300.0100.00715.43
7.0.290.0060.00315.32
7.0.280.0130.00315.34
7.0.270.0070.00715.23
7.0.260.0040.01115.23
7.0.250.0060.00614.93
7.0.240.0070.00714.94
7.0.230.0170.00015.40
7.0.220.0090.00615.38
7.0.210.0060.01015.45
7.0.200.0050.00515.81
7.0.190.0030.00615.34
7.0.180.0040.01115.36
7.0.170.0030.00715.16
7.0.160.0030.00514.97
7.0.150.0030.00615.22
7.0.140.0030.04018.75
7.0.130.0080.00015.16
7.0.120.0030.00615.29
7.0.110.0030.00715.27
7.0.100.0030.02517.63
7.0.90.0050.04617.69
7.0.80.0050.02617.55
7.0.70.0030.02917.61
7.0.60.0040.04917.47
7.0.50.0020.04317.81
7.0.40.0070.04416.70
7.0.30.0160.03216.77
7.0.20.0100.03116.68
7.0.10.0070.04316.49
7.0.00.0050.04916.76
5.6.380.0040.01114.55
5.6.370.0100.00014.15
5.6.360.0040.00714.10
5.6.350.0040.01113.99
5.6.340.0040.01114.07
5.6.330.0030.01114.17
5.6.320.0030.01214.03
5.6.310.0060.00614.49
5.6.300.0060.00614.09
5.6.290.0080.00014.09
5.6.280.0040.04017.59
5.6.270.0100.00314.16
5.6.260.0030.00814.33
5.6.250.0070.02817.17
5.6.240.0080.02417.40
5.6.230.0090.03217.38
5.6.220.0060.04417.25
5.6.210.0080.04517.34
5.6.200.0150.03717.67
5.6.190.0100.04117.51
5.6.180.0020.04717.60
5.6.170.0020.05217.72
5.6.160.0110.04317.51
5.6.150.0020.04917.65
5.6.140.0090.03517.55
5.6.130.0060.04217.67
5.6.120.0080.04617.80
5.6.110.0080.04317.77
5.6.100.0110.01917.63
5.6.90.0130.03817.71
5.6.80.0080.04217.16
5.6.70.0030.03917.13
5.6.60.0000.04617.42
5.6.50.0080.02317.39
5.6.40.0130.02317.37
5.6.30.0070.04217.42
5.6.20.0110.03917.26
5.6.10.0100.04017.27
5.6.00.0040.04217.21
5.5.380.0050.04215.64
5.5.370.0050.02315.69
5.5.360.0070.04315.69
5.5.350.0080.04015.48
5.5.340.0070.02715.94
5.5.330.0070.04215.87
5.5.320.0060.02715.95
5.5.310.0140.03015.86
5.5.300.0100.04015.69
5.5.290.0030.03016.01
5.5.280.0130.03615.77
5.5.270.0110.02315.96
5.5.260.0020.02715.90
5.5.250.0090.02315.67
5.5.240.0070.04415.63
5.5.230.0090.02515.58
5.5.220.0050.04015.42
5.5.210.0030.04415.47
5.5.200.0030.04215.51
5.5.190.0050.04015.53
5.5.180.0010.04615.58
5.5.170.0060.00610.72
5.5.160.0030.04815.67
5.5.150.0070.02415.59
5.5.140.0070.04115.62
5.5.130.0030.03015.62
5.5.120.0050.03815.68
5.5.110.0100.03715.57
5.5.100.0080.03815.63
5.5.90.0030.04215.49
5.5.80.0210.03115.37
5.5.70.0110.03715.37
5.5.60.0130.03215.41
5.5.50.0030.03715.54
5.5.40.0080.04015.57
5.5.30.0130.03915.56
5.5.20.0080.03815.55
5.5.10.0100.03715.41
5.5.00.0090.03815.39
5.4.450.0110.04215.05
5.4.440.0090.02715.30
5.4.430.0050.02714.95
5.4.420.0100.03115.17
5.4.410.0090.03814.98
5.4.400.0050.02614.78
5.4.390.0050.04114.92
5.4.380.0040.04014.97
5.4.370.0090.03614.95
5.4.360.0080.04314.97
5.4.350.0070.04014.91
5.4.340.0060.04114.83
5.4.330.0100.00310.46
5.4.320.0100.03814.84
5.4.310.0080.02314.97
5.4.300.0080.03314.85
5.4.290.0100.03615.06
5.4.280.0060.04314.90
5.4.270.0050.04215.05
5.4.260.0050.04014.91
5.4.250.0050.04414.92
5.4.240.0110.01815.03
5.4.230.0080.03814.87
5.4.220.0090.03914.70
5.4.210.0050.04314.93
5.4.200.0020.04314.79
5.4.190.0080.04014.86
5.4.180.0060.03914.88
5.4.170.0000.02814.69
5.4.160.0080.03314.99
5.4.150.0060.03814.84
5.4.140.0070.02513.56
5.4.130.0080.03813.46
5.4.120.0110.03113.66
5.4.110.0070.03313.67
5.4.100.0030.04513.54
5.4.90.0070.03813.49
5.4.80.0020.04213.44
5.4.70.0050.04213.53
5.4.60.0060.03813.48
5.4.50.0090.03613.37
5.4.40.0070.02313.37
5.4.30.0050.03713.52
5.4.20.0020.04013.52
5.4.10.0050.04213.58
5.4.00.0050.02313.36
5.3.290.0070.03612.52
5.3.280.0050.03812.43
5.3.270.0060.04312.50
5.3.260.0050.04212.47
5.3.250.0030.03012.40
5.3.240.0050.03812.41
5.3.230.0000.03212.44
5.3.220.0050.04012.29
5.3.210.0040.03812.33
5.3.200.0080.03312.35
5.3.190.0050.04012.40
5.3.180.0050.03912.32
5.3.170.0030.03312.44
5.3.160.0030.04012.38
5.3.150.0080.03712.36
5.3.140.0050.04112.36
5.3.130.0030.04412.32
5.3.120.0050.03712.34
5.3.110.0100.02512.42
5.3.100.0050.03312.06
5.3.90.0030.03812.04
5.3.80.0070.02212.06
5.3.70.0060.02112.04
5.3.60.0050.03712.10
5.3.50.0030.02911.98
5.3.40.0070.03812.02
5.3.30.0060.04212.03
5.3.20.0020.04011.92
5.3.10.0090.02011.82
5.3.00.0020.03711.74
5.2.170.0080.01810.78
5.2.160.0030.03110.81
5.2.150.0080.03110.81
5.2.140.0050.01710.79
5.2.130.0060.02110.80
5.2.120.0020.03310.76
5.2.110.0020.03410.76
5.2.100.0030.01910.74
5.2.90.0100.02810.71
5.2.80.0030.03210.73
5.2.70.0070.02710.80
5.2.60.0050.03010.70
5.2.50.0120.03010.76
5.2.40.0050.02910.78
5.2.30.0050.02710.73
5.2.20.0000.02110.66
5.2.10.0070.03010.65
5.2.00.0020.02510.48
5.1.60.0050.03010.32
5.1.50.0020.03110.32
5.1.40.0010.02510.34
5.1.30.0020.03410.42
5.1.20.0020.01910.35
5.1.10.0070.02710.36
5.1.00.0060.02310.32
5.0.50.0020.01510.32
5.0.40.0070.01810.32
5.0.30.0050.02810.32
5.0.20.0020.02410.32
5.0.10.0050.02210.32
5.0.00.0040.03310.32
4.4.90.0040.01910.32
4.4.80.0020.02010.32
4.4.70.0030.02110.32
4.4.60.0050.01910.32
4.4.50.0020.01710.32
4.4.40.0050.02510.32
4.4.30.0040.01210.32
4.4.20.0020.01810.32
4.4.10.0020.01510.32
4.4.00.0010.02510.32
4.3.110.0050.01410.32
4.3.100.0020.01910.32
4.3.90.0020.01910.32
4.3.80.0030.02810.32
4.3.70.0060.01710.32
4.3.60.0030.01010.32
4.3.50.0040.01810.32
4.3.40.0050.02310.32
4.3.30.0000.02010.32
4.3.20.0030.01710.32
4.3.10.0030.01610.32
4.3.00.0020.01210.32

preferences:
42.57 ms | 401 KiB | 5 Q