3v4l.org

run code in 300+ PHP versions simultaneously
<?php // define class constant linking to a not defined constant class Foo { const FOO = FOO; } class Bar { const BAR = BAR; } // define the linked constant AFTER reading Foo::FOO; define('FOO', 'Value of FOO'); var_dump(Foo::FOO); // define the linked constant BEFORE reading define('BAR', 'Value of BAR'); var_dump(Bar::BAR);

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.0090.00918.43
8.3.50.0120.01022.11
8.3.40.0040.01118.84
8.3.30.0060.01018.79
8.3.20.0080.00018.77
8.3.10.0050.00220.95
8.3.00.0040.00419.56
8.2.180.0150.00016.75
8.2.170.0060.00922.96
8.2.160.0070.00720.57
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00721.05
8.2.110.0030.00622.32
8.2.100.0090.00317.91
8.2.90.0040.00419.25
8.2.80.0000.00719.39
8.2.70.0060.00617.63
8.2.60.0000.00817.64
8.2.50.0030.00618.07
8.2.40.0030.00518.09
8.2.30.0000.00721.32
8.2.20.0040.00417.80
8.2.10.0080.00017.71
8.2.00.0040.00417.63
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0140.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00322.59
8.1.230.0110.00020.96
8.1.220.0000.00718.77
8.1.210.0040.00418.95
8.1.200.0060.00317.35
8.1.190.0000.00717.17
8.1.180.0050.00518.10
8.1.170.0080.00018.72
8.1.160.0040.00418.71
8.1.150.0000.00718.51
8.1.140.0080.00017.45
8.1.130.0030.00317.71
8.1.120.0080.00017.31
8.1.110.0040.00417.38
8.1.100.0000.00817.40
8.1.90.0040.00417.45
8.1.80.0040.00417.40
8.1.70.0030.00317.40
8.1.60.0070.00317.53
8.1.50.0030.00617.27
8.1.40.0040.00417.43
8.1.30.0070.00017.57
8.1.20.0040.00417.58
8.1.10.0000.00817.56
8.1.00.0050.00317.35
8.0.300.0040.00419.98
8.0.290.0060.00317.15
8.0.280.0070.00018.41
8.0.270.0030.00317.27
8.0.260.0030.00316.88
8.0.250.0060.00316.95
8.0.240.0000.00817.04
8.0.230.0000.00717.07
8.0.220.0000.00717.00
8.0.210.0070.00016.93
8.0.200.0030.00316.91
8.0.190.0070.00017.04
8.0.180.0000.00816.96
8.0.170.0080.00016.85
8.0.160.0070.00316.85
8.0.150.0000.00716.89
8.0.140.0000.00816.91
8.0.130.0030.00313.40
8.0.120.0030.00616.92
8.0.110.0040.00417.02
8.0.100.0000.00716.96
8.0.90.0050.00216.85
8.0.80.0130.01017.03
8.0.70.0020.00516.86
8.0.60.0020.00516.94
8.0.50.0000.00716.94
8.0.30.0120.00717.12
8.0.20.0140.01017.40
8.0.10.0030.00517.02
8.0.00.0110.00616.82
7.4.330.0000.00516.73
7.4.320.0030.00316.48
7.4.300.0060.00016.44
7.4.290.0060.00016.43
7.4.280.0000.00716.54
7.4.270.0080.00016.43
7.4.260.0050.00013.33
7.4.250.0040.00416.51
7.4.240.0000.00716.38
7.4.230.0030.00316.25
7.4.220.0030.02216.57
7.4.210.0070.00916.48
7.4.200.0030.00316.54
7.4.190.0040.00416.71
7.4.160.0100.00716.57
7.4.150.0090.01517.40
7.4.140.0140.00417.86
7.4.130.0220.00416.60
7.4.120.0090.00916.43
7.4.110.0080.01616.46
7.4.100.0140.00716.37
7.4.90.0100.01316.38
7.4.80.0130.00319.39
7.4.70.0070.01016.21
7.4.60.0110.00616.48
7.4.50.0000.00816.19
7.4.40.0060.01022.77
7.4.30.0090.00916.51
7.4.00.0070.01114.68
7.3.330.0050.00013.30
7.3.320.0030.00313.25
7.3.310.0050.00216.29
7.3.300.0030.00316.27
7.3.290.0070.00716.29
7.3.280.0100.00716.30
7.3.270.0100.01317.40
7.3.260.0100.00818.24
7.3.250.0070.01216.38
7.3.240.0130.00316.44
7.3.230.0130.00316.39
7.3.210.0090.00616.22
7.3.200.0100.00719.39
7.3.190.0090.00916.36
7.3.180.0000.01516.15
7.3.170.0060.00916.27
7.3.160.0100.01016.34
7.3.120.0080.00314.91
7.3.10.0110.00416.63
7.3.00.0000.01416.75
7.2.330.0060.01216.36
7.2.320.0100.01416.57
7.2.310.0030.01516.39
7.2.300.0080.01516.42
7.2.290.0100.00616.61
7.2.130.0100.00316.57
7.2.120.0030.01216.91
7.2.110.0070.00716.74
7.2.100.0060.00916.74
7.2.90.0000.01816.84
7.2.80.0040.01116.39
7.2.70.0040.01316.84
7.2.60.0100.00716.66
7.2.50.0110.00816.84
7.2.40.0080.00516.93
7.2.30.0070.01117.02
7.2.20.0080.00816.59
7.2.10.0090.00616.64
7.2.00.0100.00717.92
7.1.250.0060.00315.79
7.1.200.0040.00415.82
7.1.100.0050.00317.58
7.1.70.0470.00415.34
7.1.60.0440.01315.03
7.1.50.0500.00915.05
7.1.40.0440.00614.94
7.1.30.0400.00914.94
7.1.20.0610.00414.94
7.1.10.0520.01314.94
7.1.00.0450.01014.94
7.0.200.0440.01114.94
7.0.190.0410.01014.94
7.0.180.0460.00314.94
7.0.170.0430.00414.94
7.0.160.0400.01014.94
7.0.150.2890.00314.94
7.0.140.0540.00014.94
7.0.130.0530.00014.94
7.0.120.0450.00614.94
7.0.110.0460.00314.94
7.0.100.0490.00314.94
7.0.90.0480.00814.94
7.0.80.0540.00414.94
7.0.70.0520.00914.94
7.0.60.0470.00714.94
7.0.50.0520.00414.94
7.0.40.0070.01014.94
7.0.30.0070.00414.94
7.0.20.0080.00814.94
7.0.10.0100.00514.94
7.0.00.0070.00414.94
5.6.300.0040.04620.83
5.6.290.0160.03820.95
5.6.280.0070.08220.87
5.6.270.0210.03320.88
5.6.260.0140.06120.99
5.6.250.0140.04321.08
5.6.240.0180.07120.96
5.6.230.0230.07620.95
5.6.220.0140.05020.91
5.6.210.0000.05421.05
5.6.200.0130.04220.75
5.6.190.0110.04920.78
5.6.180.0040.04920.99
5.6.170.0070.04121.03
5.6.160.0070.04420.84
5.6.150.0060.04820.79
5.6.140.0090.04720.98
5.6.130.0030.04820.93
5.6.120.0040.05620.87
5.6.110.0170.06720.72
5.6.100.0220.05720.80
5.6.90.0080.04221.01
5.6.80.0150.03220.18
5.6.70.0000.04920.19
5.6.60.0070.04620.40
5.6.50.0170.03420.14
5.6.40.0070.04020.12
5.6.30.0070.04620.18
5.6.20.0130.03620.18
5.6.10.0030.04620.14
5.6.00.0100.05220.14
5.5.380.0030.04417.60
5.5.370.0070.04717.59
5.5.360.0070.04117.51
5.5.350.0040.04617.46
5.5.340.0070.03918.03
5.5.330.0000.04718.11
5.5.320.0090.03818.00
5.5.310.0070.04318.00
5.5.300.0190.03517.99
5.5.290.0130.04417.70
5.5.280.0130.08318.09
5.5.270.0070.07217.85
5.5.260.0060.04518.08
5.5.250.0030.05717.89
5.5.240.0070.04217.45
5.5.230.0070.03717.21
5.5.220.0040.04617.38
5.5.210.0000.04417.48
5.5.200.0100.03417.41
5.5.190.0000.04517.45
5.5.180.0090.03817.34
5.5.160.0030.04117.44
5.5.150.0100.03917.35
5.5.140.0070.07417.41
5.5.130.0100.03617.46
5.5.120.0030.04317.45
5.5.110.0090.03717.40
5.5.100.0000.04417.25
5.5.90.0000.04617.36
5.5.80.0000.04417.25
5.5.70.0130.03017.30
5.5.60.0090.03817.23
5.5.50.0070.04017.34
5.5.40.0070.04317.27
5.5.30.0000.04417.29
5.5.20.0090.04216.95
5.5.10.0030.04217.35
5.5.00.0130.03217.07
5.4.450.0030.04519.22
5.4.440.0170.04119.46
5.4.430.0030.04719.43
5.4.420.0000.04819.45
5.4.410.0130.03819.26
5.4.400.0100.03218.88
5.4.390.0030.04319.21
5.4.380.0180.03019.19
5.4.370.0030.04119.23
5.4.360.0210.04919.05
5.4.350.0070.03918.91
5.4.340.0210.02719.05
5.4.320.0060.05019.14
5.4.310.0070.03919.20
5.4.300.0100.07319.04
5.4.290.0100.04019.05
5.4.280.0160.03519.05
5.4.270.0100.06218.91
5.4.260.0070.04019.01
5.4.250.0030.04019.06
5.4.240.0070.05318.94
5.4.230.0070.03519.10
5.4.220.0100.03919.06
5.4.210.0100.03419.12
5.4.200.0070.07618.98
5.4.190.0070.04919.19
5.4.180.0030.04719.22
5.4.170.0130.03319.19
5.4.160.0030.04318.99
5.4.150.0030.04418.99
5.4.140.0040.05316.72
5.4.130.0060.03816.59
5.4.120.0030.03816.60
5.4.110.0100.03616.78
5.4.100.0030.03916.84
5.4.90.0070.03616.77
5.4.80.0030.04816.79
5.4.70.0090.03116.66
5.4.60.0110.03216.46
5.4.50.0000.04516.76
5.4.40.0060.03916.39
5.4.30.0070.06716.45
5.4.20.0200.03616.74
5.4.10.0030.03716.73
5.4.00.0100.03415.91
5.3.290.0070.04714.94
5.3.280.0040.06414.94
5.3.270.0030.04514.94
5.3.260.0100.03414.94
5.3.250.0130.06214.94
5.3.240.0030.05814.94
5.3.230.0030.04114.94
5.3.220.0030.03814.94
5.3.210.0070.03814.94
5.3.200.0040.04314.94
5.3.190.0070.03614.94
5.3.180.0030.04214.94
5.3.170.0030.04314.94
5.3.160.0030.04014.94
5.3.150.0070.03414.94
5.3.140.0060.03414.94
5.3.130.0030.04314.94
5.3.120.0040.04614.94
5.3.110.0070.03514.94
5.3.100.0070.03414.94
5.3.90.0040.04314.94
5.3.80.0000.04414.94
5.3.70.0030.04114.94
5.3.60.0130.03014.94
5.3.50.0100.04014.94
5.3.40.0090.03814.94
5.3.30.0030.03814.94
5.3.20.0030.06114.94
5.3.10.0030.03714.94
5.3.00.0000.04414.94
5.2.170.0090.02514.94
5.2.160.0070.02614.94
5.2.150.0070.04514.94
5.2.140.0070.05614.94
5.2.130.0060.02914.94
5.2.120.0030.03014.94
5.2.110.0070.02614.94
5.2.100.0070.03214.94
5.2.90.0090.02314.94
5.2.80.0000.03414.94
5.2.70.0070.03214.94
5.2.60.0100.03714.94
5.2.50.0030.02914.94
5.2.40.0000.03314.94
5.2.30.0000.03514.94
5.2.20.0070.02814.94
5.2.10.0000.03314.94
5.2.00.0000.03314.94
5.1.60.0100.01714.94
5.1.50.0070.02114.94
5.1.40.0090.01814.94
5.1.30.0030.02714.94
5.1.20.0100.04914.94
5.1.10.0000.02814.94
5.1.00.0040.03214.94
5.0.50.0030.03414.94
5.0.40.0000.02414.94
5.0.30.0070.02714.94
5.0.20.0000.02314.94
5.0.10.0140.02114.94
5.0.00.0040.03214.94
4.4.90.0000.04114.94
4.4.80.0090.00914.94
4.4.70.0000.01914.94
4.4.60.0000.01714.94
4.4.50.0060.01214.94
4.4.40.0030.02414.94
4.4.30.0070.01114.94
4.4.20.0090.01314.94
4.4.10.0030.03314.94
4.4.00.0070.03014.94
4.3.110.0030.01614.94
4.3.100.0000.02014.94
4.3.90.0060.03514.94
4.3.80.0000.04114.94
4.3.70.0030.01414.94
4.3.60.0030.02014.94
4.3.50.0040.01814.94
4.3.40.0030.02314.94
4.3.30.0030.02514.94
4.3.20.0040.04014.94
4.3.10.0000.02014.94
4.3.00.0000.01914.94

preferences:
52.62 ms | 401 KiB | 5 Q