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_export( int, true ); /* 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.0120.00918.14
8.3.50.0150.01422.92
8.3.40.0000.01418.84
8.3.30.0070.00718.93
8.3.20.0000.00720.21
8.3.10.0080.00023.48
8.3.00.0000.00817.38
8.2.180.0130.00616.38
8.2.170.0140.00022.96
8.2.160.0100.01020.58
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00020.91
8.2.110.0060.00322.13
8.2.100.0040.00717.72
8.2.90.0000.00919.09
8.2.80.0030.00617.97
8.2.70.0080.00017.63
8.2.60.0000.01017.93
8.2.50.0040.00718.07
8.2.40.0090.00318.05
8.2.30.0040.00717.94
8.2.20.0000.00717.62
8.2.10.0000.00818.03
8.2.00.0000.00717.52
8.1.280.0040.01125.92
8.1.270.0040.00423.85
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0100.00019.11
8.1.220.0050.00217.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0040.00417.13
8.1.180.0000.00718.10
8.1.170.0000.00818.57
8.1.160.0020.00522.01
8.1.150.0000.00718.78
8.1.140.0000.00817.39
8.1.130.0030.00317.76
8.1.120.0040.00417.29
8.1.110.0000.00817.44
8.1.100.0050.00217.24
8.1.90.0040.00417.43
8.1.80.0000.00717.33
8.1.70.0000.00717.35
8.1.60.0000.00817.52
8.1.50.0040.00417.33
8.1.40.0000.00717.35
8.1.30.0080.00017.54
8.1.20.0040.00417.56
8.1.10.0040.00417.42
8.1.00.0040.00417.30
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0040.00418.39
8.0.270.0000.00717.20
8.0.260.0080.00017.12
8.0.250.0030.00316.79
8.0.240.0000.00816.82
8.0.230.0070.00016.81
8.0.220.0060.00016.79
8.0.210.0060.00316.75
8.0.200.0030.00316.84
8.0.190.0000.00816.89
8.0.180.0030.00316.86
8.0.170.0040.00416.83
8.0.160.0000.00816.87
8.0.150.0080.00016.75
8.0.140.0000.00816.76
8.0.130.0030.00313.21
8.0.120.0040.00416.86
8.0.110.0050.00216.72
8.0.100.0000.00716.78
8.0.90.0000.00716.62
8.0.80.0040.01616.77
8.0.70.0080.00016.68
8.0.60.0000.00716.66
8.0.50.0070.00016.86
8.0.30.0150.00616.96
8.0.20.0140.00817.40
8.0.10.0030.00516.77
8.0.00.0160.00616.76
7.4.330.0000.00615.03
7.4.320.0000.00716.54
7.4.300.0000.00616.43
7.4.290.0030.00316.42
7.4.280.0040.00416.57
7.4.270.0030.00316.57
7.4.260.0000.00816.36
7.4.250.0000.00716.41
7.4.240.0060.00116.38
7.4.230.0020.00516.63
7.4.220.0110.00616.46
7.4.210.0000.01516.44
7.4.200.0080.00016.36
7.4.160.0050.01016.38
7.4.150.0190.00017.40
7.4.140.0100.00717.86
7.4.130.0130.00416.36
7.4.120.0140.00516.35
7.4.110.0120.00916.28
7.4.100.0110.01116.41
7.4.90.0130.00916.36
7.4.80.0060.01619.39
7.4.70.0100.01316.57
7.4.60.0150.00916.55
7.4.50.0030.00616.45
7.4.40.0030.01316.16
7.4.30.0120.00316.25
7.4.10.0040.01514.58
7.4.00.0040.01214.87
7.3.330.0040.00213.13
7.3.320.0000.00513.04
7.3.310.0030.00316.09
7.3.300.0030.00316.20
7.3.290.0030.01016.28
7.3.280.0070.01016.21
7.3.270.0150.00917.40
7.3.260.0100.00716.21
7.3.250.0100.01016.26
7.3.240.0030.01316.35
7.3.230.0090.00616.41
7.3.210.0060.01016.28
7.3.200.0120.00319.39
7.3.190.0090.01316.19
7.3.180.0100.00716.45
7.3.170.0060.00916.27
7.3.160.0060.01016.21
7.3.130.0070.00614.94
7.3.120.0040.01114.81
7.3.110.0060.00914.64
7.3.100.0030.01414.69
7.3.90.0070.00714.59
7.3.80.0000.01814.87
7.3.70.0040.00814.85
7.3.60.0040.01114.69
7.3.50.0080.00814.92
7.3.40.0070.00314.69
7.3.30.0000.01314.47
7.3.20.0080.00416.69
7.3.10.0110.00416.45
7.3.00.0090.00516.31
7.2.330.0080.01116.36
7.2.320.0090.01216.34
7.2.310.0090.00616.46
7.2.300.0070.01016.20
7.2.290.0060.00916.61
7.2.260.0060.01214.77
7.2.250.0120.00615.02
7.2.240.0030.00914.93
7.2.230.0040.01215.16
7.2.220.0090.00915.04
7.2.210.0100.01014.79
7.2.200.0030.00714.92
7.2.190.0150.00015.05
7.2.180.0000.01115.04
7.2.170.0030.00614.88
7.2.160.0000.01315.04
7.2.150.0030.01016.84
7.2.140.0080.00616.65
7.2.130.0090.00516.68
7.2.120.0090.00716.45
7.2.110.0140.00716.45
7.2.100.0090.00816.28
7.2.90.0100.00516.42
7.2.80.0150.00116.73
7.2.70.0090.00616.72
7.2.60.0090.00516.52
7.2.50.0080.00616.49
7.2.40.0090.00316.65
7.2.30.0120.00916.77
7.2.20.0070.00916.40
7.2.10.0070.00616.43
7.2.00.0090.00816.50
7.1.330.0110.00415.80
7.1.320.0100.01015.62
7.1.310.0000.01115.73
7.1.300.0120.00315.64
7.1.290.0090.00015.69
7.1.280.0060.00915.71
7.1.270.0070.00715.43
7.1.260.0100.00315.70
7.1.250.0090.00415.59
7.1.240.0000.01115.80
7.1.230.0040.00415.69
7.1.220.0000.01015.74
7.1.210.0060.00615.42
7.1.200.0080.00315.89
7.1.190.0030.00915.86
7.1.180.0060.01115.68
7.1.170.0040.00815.61
7.1.160.0030.00915.86
7.1.150.0080.00315.41
7.1.140.0090.00315.68
7.1.130.0080.00415.70
7.1.120.0070.00715.75
7.1.110.0000.00915.66
7.1.100.0030.01015.82
7.1.90.0030.00715.45
7.1.80.0030.01015.52
7.1.70.0050.00516.26
7.1.60.0070.00817.50
7.1.50.0090.00916.13
7.1.40.0060.00315.59
7.1.30.0100.00315.49
7.1.20.0040.00815.73
7.1.10.0090.00015.78
7.1.00.0080.03719.09
7.0.330.0100.00715.30
7.0.320.0000.00815.15
7.0.310.0000.00715.33
7.0.300.0060.01015.23
7.0.290.0060.00615.23
7.0.280.0050.00215.33
7.0.270.0040.00815.12
7.0.260.0050.00415.45
7.0.250.0080.00414.94
7.0.240.0070.00715.32
7.0.230.0030.00715.25
7.0.220.0040.00715.32
7.0.210.0030.00715.35
7.0.200.0040.00415.86
7.0.190.0070.00415.38
7.0.180.0090.00015.52
7.0.170.0080.00414.97
7.0.160.0030.00915.37
7.0.150.0040.00415.16
7.0.140.0080.03718.50
7.0.130.0040.00815.46
7.0.120.0070.00315.38
7.0.110.0000.01315.42
7.0.100.0110.00415.21
7.0.90.0040.00715.46
7.0.80.0060.00315.41
7.0.70.0000.01215.42
7.0.60.0140.03917.72
7.0.50.0030.04716.68
7.0.40.0100.04516.78
7.0.30.0100.02516.76
7.0.20.0130.04716.80
7.0.10.0180.02816.91
7.0.00.0130.03516.80
5.6.400.0070.00714.50
5.6.390.0030.01013.90
5.6.380.0040.00714.33
5.6.370.0060.00313.98
5.6.360.0070.01014.39
5.6.350.0030.00713.98
5.6.340.0040.01214.18
5.6.330.0070.00714.14
5.6.320.0080.00314.04
5.6.310.0040.00814.44
5.6.300.0040.00814.15
5.6.290.0100.00314.37
5.6.280.0010.04117.36
5.6.270.0060.00314.11
5.6.260.0070.00714.06
5.6.250.0030.00614.06
5.6.240.0030.00614.31
5.6.230.0030.00614.46
5.6.220.0030.00614.02
5.6.210.0020.03517.37
5.6.200.0050.03516.12
5.6.190.0030.03317.31
5.6.180.0120.02617.43
5.6.170.0120.02717.57
5.6.160.0050.03617.22
5.6.150.0090.04116.18
5.6.140.0070.02516.23
5.6.130.0130.03816.18
5.6.120.0020.04717.77
5.6.110.0110.04017.74
5.6.100.0030.04917.58
5.6.90.0050.04317.62
5.6.80.0100.04217.32
5.6.70.0070.00713.96
5.6.60.0080.00814.09
5.6.50.0030.01414.27
5.6.40.0070.00714.02
5.6.30.0060.00614.01
5.6.20.0030.01014.17
5.6.10.0030.00714.15
5.6.00.0070.00714.04
5.5.380.0030.00814.18
5.5.370.0030.01014.36
5.5.360.0090.00614.38
5.5.350.0150.04217.37
5.5.340.0070.04416.11
5.5.330.0050.02617.08
5.5.320.0250.04217.15
5.5.310.0150.02617.30
5.5.300.0060.02216.13
5.5.290.0080.04516.04
5.5.280.0070.04217.52
5.5.270.0050.02817.43
5.5.260.0080.04017.37
5.5.250.0070.02217.32
5.5.240.0170.03717.25
5.5.230.0040.01414.15
5.5.220.0060.01214.13
5.5.210.0030.01314.30
5.5.200.0050.00314.18
5.5.190.0080.00613.99
5.5.180.0030.01014.32
5.5.170.0050.00314.18
5.5.160.0000.00813.88
5.5.150.0070.00413.96
5.5.140.0060.01014.12
5.5.130.0060.00614.28
5.5.120.0030.00614.15
5.5.110.0030.00614.27
5.5.100.0070.00714.14
5.5.90.0040.01114.13
5.5.80.0040.00713.98
5.5.70.0070.00314.21
5.5.60.0040.01114.08
5.5.50.0000.01214.11
5.5.40.0080.00014.07
5.5.30.0000.00913.85
5.5.20.0070.00714.07
5.5.10.0030.00613.89
5.5.00.0090.00014.27
5.4.450.0310.02516.45
5.4.440.0130.02616.46
5.4.430.0100.02516.50
5.4.420.0180.02516.46
5.4.410.0220.02716.39
5.4.400.0080.01916.32
5.4.390.0090.03016.23
5.4.380.0280.02516.07
5.4.370.0260.03515.97
5.4.360.0290.03216.01
5.4.350.0300.03415.99
5.4.340.0210.02816.04
5.4.330.0040.00413.52
5.4.320.0060.02012.98
5.4.310.0050.02312.98
5.4.300.0050.02212.98
5.4.290.0100.01812.98
5.4.280.0060.01912.93
5.4.270.0060.01812.93
5.4.260.0040.02312.93
5.4.250.0040.02612.93
5.4.240.0050.01812.93
5.4.230.0050.01912.93
5.4.220.0040.01912.93
5.4.210.0060.01812.93
5.4.200.0050.02212.93
5.4.190.0050.02012.93
5.4.180.0100.01712.93
5.4.170.0070.02012.93
5.4.160.0030.02212.93
5.4.150.0080.01612.93
5.4.140.0060.02012.77
5.4.130.0070.02212.76
5.4.120.0070.02012.74
5.4.110.0030.02112.74
5.4.100.0050.01912.74
5.4.90.0040.02112.74
5.4.80.0060.02012.74
5.4.70.0050.02012.74
5.4.60.0040.02012.74
5.4.50.0050.01812.74
5.4.40.0040.02412.73
5.4.30.0050.02512.73
5.4.20.0040.01912.73
5.4.10.0050.01912.73
5.4.00.0050.02512.47
5.3.290.0080.03712.80
5.3.280.0050.03912.71
5.3.270.0080.03612.73
5.3.260.0070.03612.72
5.3.250.0050.03812.71
5.3.240.0080.03412.72
5.3.230.0060.03712.71
5.3.220.0050.03612.68
5.3.210.0050.03812.68
5.3.200.0050.03712.68
5.3.190.0120.03512.68
5.3.180.0060.03812.68
5.3.170.0050.03712.66
5.3.160.0060.03612.67
5.3.150.0050.03812.67
5.3.140.0050.04212.66
5.3.130.0050.04712.66
5.3.120.0050.03912.66
5.3.110.0040.03912.66
5.3.100.0070.03612.12
5.3.90.0030.03812.09
5.3.80.0070.03412.07
5.3.70.0080.03312.08
5.3.60.0080.03812.06
5.3.50.0070.03712.00
5.3.40.0090.03212.00
5.3.30.0060.04011.94
5.3.20.0080.03911.72
5.3.10.0060.03411.70
5.3.00.0040.03811.68
5.2.170.0080.0279.18
5.2.160.0070.0299.18
5.2.150.0060.0289.18
5.2.140.0070.0279.18
5.2.130.0060.0279.14
5.2.120.0050.0269.14
5.2.110.0060.0299.14
5.2.100.0020.0299.14
5.2.90.0050.0309.14
5.2.80.0040.0379.14
5.2.70.0070.0319.14
5.2.60.0030.0379.09
5.2.50.0080.0299.05
5.2.40.0050.0279.04
5.2.30.0050.0319.02
5.2.20.0070.0319.00
5.2.10.0060.0288.92
5.2.00.0050.0288.79
5.1.60.0030.0258.06
5.1.50.0070.0218.06
5.1.40.0060.0248.04
5.1.30.0060.0308.40
5.1.20.0080.0308.42
5.1.10.0060.0278.14
5.1.00.0050.0248.14
5.0.50.0020.0216.62
5.0.40.0030.0196.48
5.0.30.0030.0316.29
5.0.20.0070.0156.27
5.0.10.0040.0196.24
5.0.00.0040.0296.23
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0020.0154.75
4.4.60.0040.0144.76
4.4.50.0020.0234.77
4.4.40.0050.0314.71
4.4.30.0010.0204.76
4.4.20.0040.0154.84
4.4.10.0060.0124.85
4.4.00.0050.0264.76
4.3.110.0000.0184.67
4.3.100.0010.0164.66
4.3.90.0030.0134.64
4.3.80.0010.0264.59
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0000.0274.54
4.3.30.0030.0153.28
4.3.20.0020.0163.26
4.3.10.0040.0133.22
4.3.00.0070.01315.96

preferences:
44.05 ms | 400 KiB | 5 Q