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, false ); /* 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.0190.00316.58
8.3.60.0120.00918.31
8.3.50.0120.00322.99
8.3.40.0090.00618.67
8.3.30.0070.00718.92
8.3.20.0080.00020.35
8.3.10.0040.00423.56
8.3.00.0000.00817.38
8.2.180.0110.00716.38
8.2.170.0040.01122.96
8.2.160.0130.00020.18
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0000.00926.16
8.2.120.0080.00021.17
8.2.110.0100.00020.88
8.2.100.0110.00017.84
8.2.90.0040.00417.84
8.2.80.0030.00517.97
8.2.70.0090.00017.38
8.2.60.0040.00417.92
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0070.00418.05
8.2.20.0030.00517.61
8.2.10.0040.00418.08
8.2.00.0080.00017.57
8.1.280.0040.01125.92
8.1.270.0000.00823.85
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0030.00622.54
8.1.230.0040.00820.96
8.1.220.0040.00417.74
8.1.210.0060.00318.89
8.1.200.0040.00717.23
8.1.190.0030.00517.13
8.1.180.0040.00418.10
8.1.170.0050.00318.63
8.1.160.0030.00522.01
8.1.150.0040.00418.80
8.1.140.0040.00417.38
8.1.130.0070.00017.77
8.1.120.0040.00417.27
8.1.110.0000.00817.45
8.1.100.0040.00317.30
8.1.90.0030.00317.22
8.1.80.0070.00017.37
8.1.70.0030.00317.25
8.1.60.0030.00517.52
8.1.50.0080.00017.50
8.1.40.0040.00417.34
8.1.30.0000.00817.48
8.1.20.0000.00717.59
8.1.10.0050.00317.35
8.1.00.0060.00317.19
8.0.300.0000.00819.86
8.0.290.0040.00416.61
8.0.280.0030.00318.28
8.0.270.0030.00317.09
8.0.260.0000.00617.22
8.0.250.0000.00716.98
8.0.240.0080.00016.90
8.0.230.0030.00316.92
8.0.220.0000.00716.83
8.0.210.0060.00316.71
8.0.200.0060.00016.90
8.0.190.0040.00416.93
8.0.180.0000.00716.83
8.0.170.0000.00816.88
8.0.160.0040.00416.89
8.0.150.0030.00716.77
8.0.140.0040.00416.70
8.0.130.0000.00613.30
8.0.120.0000.00716.69
8.0.110.0000.00716.87
8.0.100.0040.00416.75
8.0.90.0050.00216.94
8.0.80.0100.00616.76
8.0.70.0030.00616.72
8.0.60.0040.00416.71
8.0.50.0050.00216.76
8.0.30.0120.00916.88
8.0.20.0130.00617.40
8.0.10.0070.00016.94
8.0.00.0090.00816.71
7.4.330.0000.00515.00
7.4.320.0060.00016.43
7.4.300.0070.00016.35
7.4.290.0070.00016.45
7.4.280.0030.00616.48
7.4.270.0000.00716.52
7.4.260.0030.00316.46
7.4.250.0050.00216.32
7.4.240.0040.00416.37
7.4.230.0030.00516.46
7.4.220.0120.00616.63
7.4.210.0070.00716.47
7.4.200.0070.00016.54
7.4.160.0030.01416.28
7.4.150.0120.00617.40
7.4.140.0080.01217.86
7.4.130.0090.00816.37
7.4.120.0110.00916.52
7.4.110.0140.00716.41
7.4.100.0060.01216.32
7.4.90.0090.01016.46
7.4.80.0180.00019.39
7.4.70.0120.00616.59
7.4.60.0080.01116.48
7.4.50.0030.00616.29
7.4.40.0100.00616.39
7.4.30.0160.00016.39
7.4.00.0140.00414.97
7.3.330.0030.00312.99
7.3.320.0000.00512.99
7.3.310.0000.00715.97
7.3.300.0040.00416.23
7.3.290.0090.00916.16
7.3.280.0070.00816.22
7.3.270.0120.01217.40
7.3.260.0080.00816.16
7.3.250.0100.00716.38
7.3.240.0100.00716.43
7.3.230.0130.00616.61
7.3.210.0000.01616.39
7.3.200.0000.01619.39
7.3.190.0100.00716.14
7.3.180.0140.00316.14
7.3.170.0100.00616.40
7.3.160.0030.01316.37
7.3.120.0080.00314.76
7.3.110.0050.01014.79
7.3.100.0080.00814.71
7.3.90.0090.00614.60
7.3.80.0040.00714.69
7.3.70.0030.01014.82
7.3.60.0150.00014.72
7.3.50.0000.01314.63
7.3.40.0090.00614.83
7.3.30.0040.00414.80
7.3.20.0080.00016.41
7.3.10.0080.00616.43
7.3.00.0110.00616.43
7.2.330.0070.01116.36
7.2.320.0120.00816.73
7.2.310.0030.01316.38
7.2.300.0130.00316.71
7.2.290.0090.00916.42
7.2.250.0120.00615.19
7.2.240.0060.01214.99
7.2.230.0080.00814.95
7.2.220.0130.00014.93
7.2.210.0100.00315.02
7.2.200.0040.01214.84
7.2.190.0040.01214.96
7.2.180.0030.01214.80
7.2.170.0130.00714.82
7.2.130.0030.01416.65
7.2.120.0010.01016.73
7.2.110.0050.01016.51
7.2.100.0080.00816.66
7.2.90.0080.00816.81
7.2.80.0090.00816.67
7.2.70.0100.01116.73
7.2.60.0070.00716.55
7.2.50.0090.00616.85
7.2.40.0110.00516.75
7.2.30.0110.00716.75
7.2.20.0040.00416.87
7.2.10.0100.00316.84
7.2.00.0040.00716.70
7.1.330.0060.00915.76
7.1.320.0030.01315.59
7.1.310.0030.00915.59
7.1.300.0040.00415.67
7.1.290.0090.00615.41
7.1.280.0070.01115.64
7.1.270.0000.01015.64
7.1.260.0070.01015.45
7.1.250.0020.01215.36
7.1.70.0030.00316.83
7.1.60.0100.00319.40
7.1.50.0120.01216.65
7.1.00.0070.07322.37
7.0.200.0030.00316.53
7.0.140.0000.07722.13
7.0.60.0130.07319.95
7.0.50.0070.05717.80
7.0.40.0100.05720.20
7.0.30.0370.04720.01
7.0.20.0270.07320.19
7.0.10.0030.04320.00
7.0.00.0070.05720.21
5.6.280.0070.07020.85
5.6.210.0070.07020.75
5.6.200.0030.06318.23
5.6.190.0070.08320.45
5.6.180.0300.07320.61
5.6.170.0400.07020.54
5.6.160.0070.06720.40
5.6.150.0070.06318.17
5.6.140.0100.07018.07
5.6.130.0130.05718.11
5.6.120.0100.08021.11
5.6.110.0130.08320.88
5.6.100.0000.04720.98
5.6.90.0200.06020.94
5.6.80.0100.08320.46
5.5.350.0100.07020.48
5.5.340.0030.05717.99
5.5.330.0070.04320.06
5.5.320.0570.05720.26
5.5.310.0370.05720.27
5.5.300.0070.04718.02
5.5.290.0030.04017.89
5.5.280.0030.04320.96
5.5.270.0030.04320.75
5.5.260.0070.04020.64
5.5.250.0130.06720.57
5.5.240.0130.06720.25
5.4.450.0030.04019.48
5.4.440.0170.04019.55
5.4.430.0300.03319.40
5.4.420.0270.04019.27
5.4.410.0170.04719.29
5.4.400.0570.03719.11
5.4.390.0400.03718.93
5.4.380.0600.06018.78
5.4.370.0300.05718.70
5.4.360.0570.05318.63
5.4.350.0470.06318.63
5.4.340.0370.05718.65
5.4.320.0120.03512.45
5.4.310.0050.03912.45
5.4.300.0110.03312.45
5.4.290.0070.03712.45
5.4.280.0080.03312.35
5.4.270.0130.03512.34
5.4.260.0120.03012.34
5.4.250.0070.03512.35
5.4.240.0050.03612.35
5.4.230.0080.03512.34
5.4.220.0090.03212.34
5.4.210.0070.03312.34
5.4.200.0060.03712.34
5.4.190.0090.03612.34
5.4.180.0030.03812.34
5.4.170.0050.03612.34
5.4.160.0070.03712.34
5.4.150.0070.03612.34
5.4.140.0050.03712.02
5.4.130.0050.04212.01
5.4.120.0020.04111.97
5.4.110.0030.03711.96
5.4.100.0060.03311.96
5.4.90.0080.04311.96
5.4.80.0060.03611.97
5.4.70.0050.03511.96
5.4.60.0070.03311.96
5.4.50.0050.03611.96
5.4.40.0060.03411.95
5.4.30.0040.03711.95
5.4.20.0060.03411.95
5.4.10.0050.03611.95
5.4.00.0070.03611.43
5.3.290.0050.04612.80
5.3.280.0070.03912.71
5.3.270.0050.03912.72
5.3.260.0080.03712.72
5.3.250.0070.03612.72
5.3.240.0070.03712.72
5.3.230.0070.03712.71
5.3.220.0100.03312.68
5.3.210.0030.04112.68
5.3.200.0090.03312.68
5.3.190.0050.04012.68
5.3.180.0080.03412.67
5.3.170.0040.03812.67
5.3.160.0080.03412.67
5.3.150.0100.03312.67
5.3.140.0070.03512.66
5.3.130.0050.04012.65
5.3.120.0160.02812.66
5.3.110.0100.03512.66
5.3.100.0050.04112.12
5.3.90.0060.03712.08
5.3.80.0090.03412.07
5.3.70.0050.03812.08
5.3.60.0050.03712.06
5.3.50.0050.03712.00
5.3.40.0070.03412.00
5.3.30.0090.03111.94
5.3.20.0040.03611.72
5.3.10.0030.03711.69
5.3.00.0100.03211.68
5.2.170.0030.0329.18
5.2.160.0060.0279.18
5.2.150.0060.0289.18
5.2.140.0040.0319.18
5.2.130.0040.0299.14
5.2.120.0050.0289.14
5.2.110.0040.0299.15
5.2.100.0060.0279.14
5.2.90.0040.0299.14
5.2.80.0020.0329.14
5.2.70.0040.0309.14
5.2.60.0030.0319.09
5.2.50.0050.0299.06
5.2.40.0040.0299.04
5.2.30.0050.0289.02
5.2.20.0040.0299.00
5.2.10.0050.0288.92
5.2.00.0080.0258.78
5.1.60.0090.0198.07
5.1.50.0050.0238.06
5.1.40.0040.0238.05
5.1.30.0030.0278.39
5.1.20.0050.0258.42
5.1.10.0030.0268.14
5.1.00.0020.0278.14
5.0.50.0030.0216.62
5.0.40.0020.0206.47
5.0.30.0030.0316.30
5.0.20.0030.0226.27
5.0.10.0030.0216.24
5.0.00.0030.0316.23
4.4.90.0040.0134.78
4.4.80.0010.0164.76
4.4.70.0020.0164.76
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0010.0274.71
4.4.30.0040.0144.76
4.4.20.0020.0164.85
4.4.10.0040.0144.85
4.4.00.0030.0254.76
4.3.110.0020.0184.66
4.3.100.0030.0144.66
4.3.90.0040.0134.64
4.3.80.0030.0244.59
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0030.0154.63
4.3.40.0020.0244.54
4.3.30.0040.0163.28
4.3.20.0000.0183.26
4.3.10.0000.0173.22
4.3.00.0070.01715.96

preferences:
45.45 ms | 401 KiB | 5 Q