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); /* 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.40.0060.00918.54
8.3.30.0110.00719.02
8.3.20.0000.00720.04
8.3.10.0080.00023.66
8.3.00.0040.00419.67
8.2.170.0100.00722.96
8.2.160.0030.01720.11
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0100.00019.34
8.2.110.0090.00022.31
8.2.100.0090.00317.78
8.2.90.0030.00519.05
8.2.80.0030.00517.97
8.2.70.0050.00317.50
8.2.60.0060.00317.80
8.2.50.0000.00818.07
8.2.40.0000.00919.88
8.2.30.0060.00418.20
8.2.20.0050.00317.54
8.2.10.0000.00818.05
8.2.00.0080.00019.43
8.1.270.0050.00323.73
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00923.85
8.1.230.0040.00819.15
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.13
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0040.00418.47
8.1.160.0000.00721.98
8.1.150.0040.00418.71
8.1.140.0000.00717.38
8.1.130.0000.00717.66
8.1.120.0060.00317.33
8.1.110.0050.00317.28
8.1.100.0030.00317.31
8.1.90.0040.00317.39
8.1.80.0050.00217.20
8.1.70.0030.00317.31
8.1.60.0030.00617.42
8.1.50.0040.00417.49
8.1.40.0040.00417.42
8.1.30.0040.00417.56
8.1.20.0030.00517.57
8.1.10.0040.00417.39
8.1.00.0030.00617.30
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0050.00318.28
8.0.270.0030.00317.23
8.0.260.0030.00317.14
8.0.250.0000.00716.90
8.0.240.0030.00316.91
8.0.230.0000.00716.79
8.0.220.0030.00316.80
8.0.210.0000.00716.77
8.0.200.0000.00616.88
8.0.190.0000.00716.84
8.0.180.0050.00516.73
8.0.170.0040.00416.83
8.0.160.0000.00716.86
8.0.150.0040.00416.65
8.0.140.0000.00716.66
8.0.130.0050.00013.23
8.0.120.0050.00316.80
8.0.110.0040.00416.65
8.0.100.0000.00716.62
8.0.90.0040.00416.64
8.0.80.0090.01316.84
8.0.70.0070.00016.80
8.0.60.0050.00216.69
8.0.50.0040.00416.83
8.0.30.0130.01217.01
8.0.20.0130.01117.40
8.0.10.0040.00416.93
8.0.00.0130.00316.77
7.4.330.0020.00215.04
7.4.320.0030.00316.41
7.4.300.0000.00616.52
7.4.290.0000.00716.31
7.4.280.0000.00816.42
7.4.270.0000.00716.53
7.4.260.0100.00016.27
7.4.250.0000.00816.52
7.4.240.0060.00116.39
7.4.230.0000.00716.61
7.4.220.0110.00716.39
7.4.210.0130.00316.60
7.4.200.0000.00716.42
7.4.160.0030.01416.57
7.4.150.0080.01017.40
7.4.140.0080.01017.86
7.4.130.0100.00816.52
7.4.120.0070.00916.42
7.4.110.0070.01016.30
7.4.100.0130.00316.58
7.4.90.0030.01416.44
7.4.80.0170.00019.39
7.4.70.0170.00016.39
7.4.60.0080.00816.43
7.4.50.0040.00416.27
7.4.40.0110.00616.42
7.4.30.0060.01016.49
7.4.10.0090.00714.73
7.4.00.0060.00915.01
7.3.330.0030.00313.02
7.3.320.0060.00013.12
7.3.310.0000.00716.27
7.3.300.0040.00416.20
7.3.290.0100.01016.18
7.3.280.0080.01016.22
7.3.270.0110.00617.40
7.3.260.0170.00316.16
7.3.250.0080.01216.10
7.3.240.0080.00816.35
7.3.230.0050.01116.48
7.3.210.0070.01116.36
7.3.200.0150.00919.39
7.3.190.0070.01116.28
7.3.180.0060.01016.20
7.3.170.0080.00816.27
7.3.160.0150.00616.39
7.3.130.0030.01414.72
7.3.120.0030.01114.81
7.3.110.0110.00414.96
7.3.100.0060.00914.99
7.3.90.0150.00014.62
7.3.80.0070.00714.70
7.3.70.0140.00014.70
7.3.60.0070.00414.83
7.3.50.0040.00414.88
7.3.40.0030.01214.58
7.3.30.0070.00714.80
7.3.20.0090.00316.68
7.3.10.0000.01416.47
7.3.00.0000.01516.62
7.2.330.0140.00316.38
7.2.320.0100.01016.43
7.2.310.0100.00716.27
7.2.300.0140.00316.58
7.2.290.0000.01616.47
7.2.260.0120.00414.89
7.2.250.0070.01014.84
7.2.240.0060.01014.71
7.2.230.0060.01215.02
7.2.220.0110.00614.91
7.2.210.0070.00715.13
7.2.200.0040.01114.80
7.2.190.0090.00315.09
7.2.180.0000.01415.03
7.2.170.0070.00314.99
7.2.160.0000.01115.02
7.2.150.0160.00016.97
7.2.140.0030.00916.79
7.2.130.0000.01416.66
7.2.120.0060.00616.89
7.2.110.0100.01016.55
7.2.100.0000.01416.67
7.2.90.0100.00316.90
7.2.80.0100.00716.90
7.2.70.0060.00616.75
7.2.60.0080.00416.90
7.2.50.0090.00916.91
7.2.40.0030.01016.96
7.2.30.0030.00916.70
7.2.20.0060.00316.78
7.2.10.0060.00916.71
7.2.00.0070.00417.97
7.1.330.0030.01015.67
7.1.320.0030.00615.35
7.1.310.0060.01015.60
7.1.300.0100.00315.43
7.1.290.0000.01215.64
7.1.280.0000.01315.61
7.1.270.0060.00915.86
7.1.260.0030.00715.65
7.1.250.0000.01015.72
7.1.240.0040.01115.41
7.1.230.0030.01215.47
7.1.220.0090.01215.64
7.1.210.0000.01015.44
7.1.200.0060.00615.73
7.1.190.0030.01015.67
7.1.180.0080.00515.77
7.1.170.0100.00315.79
7.1.160.0070.00415.74
7.1.150.0040.01115.63
7.1.140.0090.00315.83
7.1.130.0070.00715.91
7.1.120.0030.00615.45
7.1.110.0070.00715.90
7.1.100.0040.00816.80
7.1.90.0160.00015.61
7.1.80.0110.00315.77
7.1.70.0010.00916.41
7.1.60.0070.01317.65
7.1.50.0100.00816.35
7.1.40.0030.01015.82
7.1.30.0040.01215.51
7.1.20.0030.00715.36
7.1.10.0080.00415.46
7.1.00.0050.04219.09
7.0.330.0030.00915.27
7.0.320.0000.01315.20
7.0.310.0040.01115.35
7.0.300.0070.00715.05
7.0.290.0030.00615.17
7.0.280.0030.00915.39
7.0.270.0130.00015.26
7.0.260.0030.00515.23
7.0.250.0140.00415.36
7.0.240.0060.00915.39
7.0.230.0040.00815.28
7.0.220.0000.01115.21
7.0.210.0080.00415.35
7.0.200.0360.00514.97
7.0.190.0000.01615.41
7.0.180.0080.00315.50
7.0.170.0070.00715.41
7.0.160.0090.00615.29
7.0.150.0040.00815.08
7.0.140.0050.04018.69
7.0.130.0070.00715.24
7.0.120.0040.00415.34
7.0.110.0130.00315.36
7.0.100.0070.00715.23
7.0.90.0030.00915.41
7.0.80.0110.00415.37
7.0.70.0030.00915.33
7.0.60.0080.02817.64
7.0.50.0050.03916.70
7.0.40.0110.03816.83
7.0.30.0150.04616.72
7.0.20.0170.04216.86
7.0.10.0110.04216.83
7.0.00.0110.02516.62
5.6.400.0030.00914.39
5.6.390.0090.00314.30
5.6.380.0030.01714.45
5.6.370.0000.01314.04
5.6.360.0000.01214.43
5.6.350.0060.00914.54
5.6.340.0060.00313.99
5.6.330.0060.00314.26
5.6.320.0080.00414.20
5.6.310.0060.00614.27
5.6.300.0030.00913.95
5.6.290.0070.00714.14
5.6.280.0030.04017.62
5.6.270.0070.00714.49
5.6.260.0060.00314.16
5.6.250.0090.00314.48
5.6.240.0090.00614.06
5.6.230.0140.00314.00
5.6.220.0000.01114.45
5.6.210.0090.04117.54
5.6.200.0050.03816.13
5.6.190.0070.04717.30
5.6.180.0080.02617.24
5.6.170.0200.04017.32
5.6.160.0090.04517.23
5.6.150.0090.03216.08
5.6.140.0070.02016.12
5.6.130.0080.04616.12
5.6.120.0080.04517.70
5.6.110.0080.03517.57
5.6.100.0040.03417.63
5.6.90.0050.04017.63
5.6.80.0050.04017.26
5.6.70.0150.00014.13
5.6.60.0100.00014.07
5.6.50.0030.01213.95
5.6.40.0100.00013.98
5.6.30.0110.00414.45
5.6.20.0070.01014.12
5.6.10.0030.00714.16
5.6.00.0030.00714.29
5.5.380.0040.01114.02
5.5.370.0000.01414.24
5.5.360.0030.00914.15
5.5.350.0180.03217.19
5.5.340.0090.02416.14
5.5.330.0050.02617.44
5.5.320.0170.04417.22
5.5.310.0170.02317.13
5.5.300.0110.03815.86
5.5.290.0100.04616.15
5.5.280.0160.04217.31
5.5.270.0130.04117.52
5.5.260.0110.04117.32
5.5.250.0060.04417.29
5.5.240.0060.04117.11
5.5.230.0030.01013.82
5.5.220.0000.01613.96
5.5.210.0090.00413.79
5.5.200.0000.01514.13
5.5.190.0070.00713.81
5.5.180.0040.00414.17
5.5.170.0040.00813.73
5.5.160.0070.01013.88
5.5.150.0100.00313.67
5.5.140.0130.00014.05
5.5.130.0040.00814.03
5.5.120.0040.01114.20
5.5.110.0000.01014.11
5.5.100.0070.00713.95
5.5.90.0100.00014.25
5.5.80.0070.00713.71
5.5.70.0030.01014.01
5.5.60.0070.00714.21
5.5.50.0100.00714.13
5.5.40.0080.00813.97
5.5.30.0030.01013.79
5.5.20.0060.00613.92
5.5.10.0080.00413.77
5.5.00.0030.01013.73
5.4.450.0100.02815.50
5.4.440.0070.03815.49
5.4.430.0020.03015.41
5.4.420.0060.04015.51
5.4.410.0070.02615.39
5.4.400.0050.03515.31
5.4.390.0010.04615.29
5.4.380.0060.02115.16
5.4.370.0050.03315.14
5.4.360.0030.03315.32
5.4.350.0050.04315.35
5.4.340.0070.03015.32
5.4.330.0090.00311.50
5.4.320.0030.04315.31
5.4.310.0030.04215.29
5.4.300.0030.03015.33
5.4.290.0000.03115.14
5.4.280.0020.03115.29
5.4.270.0050.03815.30
5.4.260.0030.04215.32
5.4.250.0050.03015.21
5.4.240.0030.04515.15
5.4.230.0050.04215.33
5.4.220.0070.04015.21
5.4.210.0210.02815.32
5.4.200.0050.04415.35
5.4.190.0070.03515.31
5.4.180.0030.02815.30
5.4.170.0050.04015.13
5.4.160.0030.02215.20
5.4.150.0050.03115.32
5.4.140.0040.03913.92
5.4.130.0070.02013.83
5.4.120.0020.03513.83
5.4.110.0070.03713.89
5.4.100.0050.03713.82
5.4.90.0100.03313.94
5.4.80.0030.03713.90
5.4.70.0070.03213.83
5.4.60.0070.03913.89
5.4.50.0020.02313.88
5.4.40.0020.04213.89
5.4.30.0030.02513.89
5.4.20.0020.04514.04
5.4.10.0050.03513.87
5.4.00.0050.03713.61
5.3.290.0130.06014.61
5.3.280.0070.05714.51
5.3.270.0100.07314.54
5.3.260.0100.05714.53
5.3.250.0030.05014.48
5.3.240.0030.03714.56
5.3.230.0070.05314.54
5.3.220.0000.04314.46
5.3.210.0000.04314.55
5.3.200.0070.05314.48
5.3.190.0100.07314.35
5.3.180.0100.06014.49
5.3.170.0100.06714.48
5.3.160.0230.03014.51
5.3.150.0130.05314.45
5.3.140.0070.07714.45
5.3.130.0100.04314.47
5.3.120.0070.06714.33
5.3.110.0070.07314.50
5.3.100.0070.07313.83
5.3.90.0030.06013.95
5.3.80.0070.07313.80
5.3.70.0030.08013.97
5.3.60.0030.07713.94
5.3.50.0070.07313.86
5.3.40.0170.06314.03
5.3.30.0100.07013.83
5.3.20.0100.06713.77
5.3.10.0100.06013.58
5.3.00.0030.03713.47
5.2.170.0130.05311.02
5.2.160.0030.03011.03
5.2.150.0070.06311.07
5.2.140.0030.06711.30
5.2.130.0000.06010.95
5.2.120.0000.04311.00
5.2.110.0000.03011.09
5.2.100.0030.02710.96
5.2.90.0000.03011.11
5.2.80.0100.05711.00
5.2.70.0070.05311.25
5.2.60.0100.05311.04
5.2.50.0030.05710.89
5.2.40.0130.05710.87
5.2.30.0030.05011.12
5.2.20.0070.03310.89
5.2.10.0100.05010.94
5.2.00.0100.02310.76
5.1.60.0000.0339.94
5.1.50.0000.0379.97
5.1.40.0000.0379.88
5.1.30.0070.05710.22
5.1.20.0130.04710.30
5.1.10.0100.05010.05
5.1.00.0030.03710.01
5.0.50.0030.0508.70
5.0.40.0070.0338.41
5.0.30.0070.0378.20
5.0.20.0100.0408.20
5.0.10.0070.0308.18
5.0.00.0000.0678.14
4.4.90.0000.0377.49
4.4.80.0000.0277.49
4.4.70.0100.0277.49
4.4.60.0070.0307.49
4.4.50.0000.0307.49
4.4.40.0000.0377.49
4.4.30.0030.0377.49
4.4.20.0000.0277.49
4.4.10.0100.0307.49
4.4.00.0000.0607.49
4.3.110.0030.0207.49
4.3.100.0030.0277.49
4.3.90.0030.0337.49
4.3.80.0000.0407.49
4.3.70.0030.0207.49
4.3.60.0030.0137.49
4.3.50.0000.0177.49
4.3.40.0070.0307.49
4.3.30.0000.0407.49
4.3.20.0030.0207.49
4.3.10.0030.0237.49
4.3.00.0030.0207.49

preferences:
45.15 ms | 400 KiB | 5 Q