3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const EXAMPLE = OTHER_CONST; } var_dump(class_exists('Foo')); define('OTHER_CONST', 'some value'); echo Foo::EXAMPLE;

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.5.10.0070.01018.82
8.5.00.0150.00619.80
8.4.150.0010.00114.05
8.4.140.0110.01017.60
8.4.130.0110.00918.72
8.4.120.0050.00520.70
8.4.110.0130.00617.96
8.4.100.0140.00617.66
8.4.90.0140.00520.74
8.4.80.0120.00718.68
8.4.70.0110.00820.64
8.4.60.0070.00820.56
8.4.50.0070.01418.48
8.4.40.0120.00619.46
8.4.30.0040.00420.41
8.4.20.0080.01217.93
8.4.10.0060.00321.97
8.3.280.0140.01318.25
8.3.270.0090.01216.43
8.3.260.0130.00716.39
8.3.250.0100.00816.58
8.3.240.0070.00416.50
8.3.230.0120.00616.66
8.3.220.0080.00318.71
8.3.210.0090.00916.68
8.3.200.0090.00616.45
8.3.190.0070.01118.76
8.3.180.0140.00419.06
8.3.170.0110.00716.91
8.3.160.0150.00316.53
8.3.150.0100.01016.49
8.3.140.0090.00616.57
8.3.130.0080.00018.17
8.3.120.0080.00018.98
8.3.110.0030.00616.50
8.3.100.0000.00816.49
8.3.90.0120.00326.77
8.3.80.0040.00916.50
8.3.70.0090.00916.63
8.3.60.0120.00316.38
8.3.50.0070.00718.23
8.3.40.0100.00320.15
8.3.30.0120.00318.72
8.3.20.0080.00024.18
8.3.10.0060.00324.66
8.3.00.0000.00826.16
8.2.290.0080.00216.59
8.2.280.0060.00818.39
8.2.270.0070.01116.35
8.2.260.0060.01217.17
8.2.250.0060.00917.94
8.2.240.0120.00616.53
8.2.230.0080.00020.94
8.2.220.0000.00824.06
8.2.210.0080.00026.77
8.2.200.0090.00016.50
8.2.190.0060.00916.63
8.2.180.0090.00625.92
8.2.170.0090.00618.96
8.2.160.0060.00822.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00226.16
8.2.110.0030.00622.08
8.2.100.0090.00317.75
8.2.90.0090.00019.08
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0050.00317.93
8.2.50.0120.00819.52
8.2.40.0170.00019.52
8.2.30.0130.00419.52
8.2.20.0080.00819.52
8.2.10.0140.00319.52
8.2.00.0090.00619.52
8.1.330.0090.01015.93
8.1.320.0080.00815.88
8.1.310.0130.00715.93
8.1.300.0060.00315.78
8.1.290.0070.00330.84
8.1.280.0030.01425.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.54
8.1.230.0070.00417.42
8.1.220.0000.00817.74
8.1.210.0030.00718.77
8.1.200.0030.00617.22
8.1.190.0090.00316.98
8.1.180.0140.00319.52
8.1.170.0120.00319.52
8.1.160.0100.00619.52
8.1.150.0110.00619.52
8.1.140.0120.00619.52
8.1.130.0100.00519.52
8.1.120.0180.00019.52
8.1.110.0120.00519.52
8.1.100.0160.00019.52
8.1.90.0130.00319.52
8.1.80.0070.00418.05
8.1.70.0110.00519.52
8.1.60.0120.00919.52
8.1.50.0150.00519.52
8.1.40.0120.00619.52
8.1.30.0130.00419.52
8.1.20.0120.00419.52
8.1.10.0180.00019.52
8.1.00.0090.00919.52
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0080.00819.52
8.0.270.0070.01019.52
8.0.260.0120.00419.52
8.0.250.0140.00319.52
8.0.240.0110.00619.52
8.0.230.0130.00319.52
8.0.220.0030.01319.52
8.0.210.0080.00819.52
8.0.200.0130.00319.52
8.0.190.0120.00419.52
8.0.180.0080.00819.52
8.0.170.0110.00619.52
8.0.160.0160.00019.52
8.0.150.0160.00019.52
8.0.140.0120.00619.52
8.0.130.0160.00019.52
8.0.120.0090.00919.52
8.0.110.0150.00019.52
8.0.100.0080.00819.52
8.0.90.0110.00519.52
8.0.80.0150.00019.52
8.0.70.0110.00619.52
8.0.60.0190.00019.52
8.0.50.0130.00619.52
8.0.30.0060.01019.52
8.0.20.0120.00419.52
8.0.10.0080.00819.52
7.4.330.0130.00019.52
7.4.320.0130.00319.52
7.4.300.0150.00319.52
7.4.290.0100.00719.52
7.4.280.0090.00619.52
7.4.270.0130.00319.52
7.4.260.0150.00019.52
7.4.250.0110.00519.52
7.4.240.0150.00019.52
7.4.230.0160.00019.52
7.4.220.0160.00019.52
7.4.210.0100.00519.52
7.4.200.0140.00019.52
7.4.190.0110.00419.52
7.4.180.0080.00819.52
7.4.160.0120.00319.52
7.4.150.0080.00819.52
7.4.140.0140.00019.52
7.4.130.0110.00719.52
7.4.120.0100.00519.52
7.4.110.0120.00319.52
7.4.100.0110.00419.52
7.4.90.0140.00019.52
7.4.80.0080.00819.52
7.4.70.0140.00219.52
7.4.60.0100.00419.52
7.4.50.0150.00019.52
7.4.40.0120.00519.52
7.4.30.0080.00819.52
7.4.20.0050.01019.52
7.4.10.0040.01219.52
7.4.00.0090.00619.52

preferences:
37.76 ms | 403 KiB | 5 Q