3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (mt_rand(0, 1) === 0) { class Foo { static function bar() { echo 'First bar'; } } } else { class Foo { static function bar() { echo 'Second bar'; } } } Foo::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)
7.4.100.0060.01016.53
7.4.90.0110.00716.47
7.4.80.0040.01216.35
7.4.70.0100.00716.64
7.4.60.0100.00616.34
7.4.50.0040.01316.34
7.4.40.0110.00616.32
7.4.30.0060.01116.45
7.4.20.0100.00616.36
7.4.10.0060.01016.27
7.4.00.0060.00916.03
7.3.220.0040.01416.22
7.3.210.0110.00616.32
7.3.200.0060.01216.48
7.3.190.0000.01716.13
7.3.180.0030.01316.48
7.3.170.0080.00816.25
7.3.160.0130.00316.09
7.3.150.0030.01216.11
7.3.140.0110.00616.54
7.3.130.0120.00316.29
7.3.120.0060.00916.39
7.3.110.0030.01316.18
7.3.100.0080.00816.30
7.3.90.0100.00616.29
7.3.80.0120.00316.23
7.3.70.0120.00316.27
7.3.60.0080.00716.36
7.3.50.0140.00416.07
7.3.40.0100.00716.02
7.3.30.0080.01216.20
7.3.20.0070.01116.30
7.3.10.0070.01016.10
7.3.00.0030.01316.33
7.2.330.0130.00316.63
7.2.320.0100.00716.59
7.2.310.0080.00816.56
7.2.300.0070.00916.66
7.2.290.0100.00716.55
7.2.280.0090.00616.54
7.2.270.0060.01016.34
7.2.260.0060.00916.61
7.2.250.0030.01316.44
7.2.240.0040.01116.59
7.2.230.0000.01616.27
7.2.220.0130.00316.52
7.2.210.0060.00916.21
7.2.200.0130.00316.65
7.2.190.0160.00316.62
7.2.180.0100.01316.51
7.2.170.0090.00916.30
7.2.160.0100.00716.44
7.2.150.0090.00916.46
7.2.140.0030.01416.59
7.2.130.0030.01316.25
7.2.120.0040.01316.48
7.2.110.0070.01316.57
7.2.100.0090.00816.48
7.2.90.0100.00716.38
7.2.80.0160.00016.29
7.2.70.0140.00716.68
7.2.60.0100.01116.48
7.2.50.0170.00716.65
7.2.40.0030.01316.40
7.2.30.0030.01716.42
7.2.20.0130.00616.46
7.2.10.0050.01416.33
7.2.00.0090.00916.21

preferences:
38.79 ms | 400 KiB | 5 Q