3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('OTHER_CONST', 'some value'); class Foo { const EXAMPLE = OTHER_CONST; } var_dump(class_exists('Foo')); 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.00.0140.00819.54
8.4.150.0010.00114.05
8.4.140.0110.01017.37
8.4.130.0130.00817.52
8.4.120.0140.00620.23
8.4.110.0100.01122.43
8.4.100.0110.01017.50
8.4.90.0150.00618.75
8.4.80.0160.00417.68
8.4.70.0100.01017.72
8.4.60.0090.01118.55
8.4.50.0040.00617.92
8.4.40.0160.00319.32
8.4.30.0140.00720.20
8.4.20.0150.00617.61
8.4.10.0000.00821.93
8.3.280.0120.00920.72
8.3.270.0120.00716.32
8.3.260.0140.00616.45
8.3.250.0070.00318.52
8.3.240.0120.00716.26
8.3.230.0060.00216.41
8.3.220.0040.00417.10
8.3.210.0130.00518.31
8.3.200.0050.00316.43
8.3.190.0030.01217.01
8.3.180.0080.00716.26
8.3.170.0120.00618.87
8.3.160.0110.00818.37
8.3.150.0040.01118.93
8.3.140.0080.00016.62
8.3.130.0000.00818.57
8.3.120.0040.00419.00
8.3.110.0030.00616.78
8.3.100.0000.00916.28
8.3.90.0070.01126.77
8.3.80.0090.00316.50
8.3.70.0100.01018.18
8.3.60.0040.01116.75
8.3.50.0070.01018.18
8.3.40.0060.01520.38
8.3.30.0110.00418.86
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.290.0100.01020.29
8.2.280.0060.00718.31
8.2.270.0100.01017.19
8.2.260.0080.00018.01
8.2.250.0080.00016.65
8.2.240.0050.00316.37
8.2.230.0030.00520.94
8.2.220.0100.00624.06
8.2.210.0050.00326.77
8.2.200.0030.00618.29
8.2.190.0120.00916.58
8.2.180.0140.00725.92
8.2.170.0110.00418.96
8.2.160.0110.00322.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.75
8.2.110.0100.00721.76
8.2.100.0090.00317.47
8.2.90.0080.00021.02
8.2.80.0060.00317.97
8.2.70.0040.00417.92
8.2.60.0040.00417.80
8.2.50.0120.00619.52
8.2.40.0100.00719.52
8.2.30.0130.00319.52
8.2.20.0000.01619.52
8.2.10.0100.00619.52
8.2.00.0120.00619.52
8.1.330.0100.00921.92
8.1.320.0100.00515.74
8.1.310.0080.00018.23
8.1.300.0030.00617.47
8.1.290.0080.00430.84
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.01022.27
8.1.230.0080.00419.09
8.1.220.0080.00017.74
8.1.210.0040.00419.01
8.1.200.0060.00317.23
8.1.190.0080.00317.07
8.1.180.0120.00419.52
8.1.170.0060.00919.52
8.1.160.0160.00019.52
8.1.150.0130.00519.52
8.1.140.0000.01519.52
8.1.130.0060.01119.52
8.1.120.0150.00419.52
8.1.110.0150.00419.52
8.1.100.0110.00519.52
8.1.90.0130.00319.52
8.1.80.0060.00518.01
8.1.70.0120.00319.52
8.1.60.0140.00319.52
8.1.50.0140.00319.52
8.1.40.0090.00919.52
8.1.30.0130.00419.52
8.1.20.0100.00719.52
8.1.10.0170.00019.52
8.1.00.0150.00319.52
8.0.300.0090.00719.62
8.0.290.0040.00416.63
8.0.280.0170.00019.52
8.0.270.0120.00819.52
8.0.260.0080.01019.52
8.0.250.0080.00819.52
8.0.240.0110.00619.52
8.0.230.0160.00019.52
8.0.220.0150.00319.52
8.0.210.0140.00319.52
8.0.200.0100.00619.52
8.0.190.0160.00019.52
8.0.180.0160.00019.52
8.0.170.0000.01619.52
8.0.160.0070.01019.52
8.0.150.0120.00419.52
8.0.140.0140.00419.52
8.0.130.0100.00719.52
8.0.120.0080.00819.52
8.0.110.0110.00719.52
8.0.100.0090.00919.52
8.0.90.0160.00019.52
8.0.80.0150.00019.52
8.0.70.0180.00019.52
8.0.60.0110.00619.52
8.0.50.0050.01019.52
8.0.30.0130.00319.52
8.0.20.0120.00419.52
8.0.10.0110.00419.52
7.4.330.0130.00019.52
7.4.320.0070.00719.52
7.4.300.0150.00019.52
7.4.290.0150.00019.52
7.4.280.0120.00419.52
7.4.270.0100.00519.52
7.4.260.0120.00419.52
7.4.250.0110.00619.52
7.4.240.0100.00719.52
7.4.230.0100.00519.52
7.4.220.0150.00019.52
7.4.210.0110.00419.52
7.4.200.0130.00319.52
7.4.190.0140.00019.52
7.4.180.0130.00319.52
7.4.160.0090.00619.52
7.4.150.0170.00019.52
7.4.140.0070.00719.52
7.4.130.0130.00319.52
7.4.120.0160.00019.52
7.4.110.0140.00319.52
7.4.100.0060.01219.52
7.4.90.0110.00419.52
7.4.80.0070.00819.52
7.4.70.0120.00319.52
7.4.60.0120.00319.52
7.4.50.0150.00019.52
7.4.40.0140.00019.52
7.4.30.0140.00019.52
7.4.20.0070.00719.52
7.4.10.0080.00819.52
7.4.00.0090.00519.52

preferences:
35.59 ms | 403 KiB | 5 Q