3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Fruits { const FRUITS = 'apple '; public static $fruits = 'grape '; function test() { echo self::FRUITS; echo self::$fruits; } } ?>

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.00618.30
8.3.50.0040.01116.32
8.3.40.0080.00620.04
8.3.30.0110.00818.61
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.180.0100.01016.32
8.2.170.0110.00418.44
8.2.160.0030.01022.96
8.2.150.0030.00525.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0090.00026.16
8.2.110.0080.00022.15
8.2.100.0070.00317.66
8.2.90.0000.00819.45
8.2.80.0030.00517.63
8.2.70.0050.00517.50
8.2.60.0070.00417.91
8.2.50.0060.00318.07
8.2.40.0040.00418.21
8.2.30.0000.00817.96
8.2.20.0040.00419.16
8.2.10.0040.00417.54
8.2.00.0040.00417.34
8.1.280.0170.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.71
8.1.230.0110.00021.03
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0000.00722.07
8.1.170.0020.00518.91
8.1.160.0040.00418.72
8.1.150.0000.00718.50
8.1.140.0000.00817.17
8.1.130.0080.00017.32
8.1.120.0000.00717.32
8.1.110.0030.00517.30
8.1.100.0000.00717.38
8.1.90.0080.00017.38
8.1.80.0030.00517.42
8.1.70.0000.00717.38
8.1.60.0040.00417.38
8.1.50.0080.00017.33
8.1.40.0030.00617.52
8.1.30.0030.00617.56
8.1.20.0000.00917.43
8.1.10.0030.00617.38
8.1.00.0040.00417.37
8.0.300.0040.00419.75
8.0.290.0050.00316.63
8.0.280.0000.00818.24
8.0.270.0030.00316.66
8.0.260.0070.00016.71
8.0.250.0040.00416.69
8.0.240.0030.00616.66
8.0.230.0060.00316.61
8.0.220.0050.00316.78
8.0.210.0030.00316.68
8.0.200.0080.00016.58
8.0.190.0040.00416.62
8.0.180.0040.00416.77
8.0.170.0070.00016.57
8.0.160.0040.00416.78
8.0.150.0060.00316.67
8.0.140.0030.00616.66
8.0.130.0050.00216.73
8.0.120.0070.00016.67
8.0.110.0000.00716.54
8.0.100.0000.00716.66
8.0.90.0070.00016.66
8.0.80.0000.00716.64
8.0.70.0000.00716.78
8.0.60.0040.00416.66
8.0.50.0000.00816.71
8.0.30.0080.00016.63
8.0.20.0000.00716.74
8.0.10.0000.00716.79

preferences:
67.71 ms | 401 KiB | 5 Q