3v4l.org

run code in 300+ PHP versions simultaneously
<?php class time{ public function echoTime() { echo time(); } } class A { public static function test() { $time = new tate(); $time->echoTime(); } } A::test(); usleep(2000); A::test();

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.2.60.0100.00316.67
7.2.00.0030.00919.32
7.1.200.0070.00415.70
7.1.100.0060.00917.74
7.1.70.0000.00716.91
7.1.60.0060.01919.48
7.1.50.0030.01716.90
7.1.00.0030.07722.43
7.0.200.0260.00416.71
7.0.100.0070.05719.91
7.0.90.0070.04020.02
7.0.80.0100.03719.87
7.0.70.0030.04719.91
7.0.60.0000.05019.88
7.0.50.0100.04020.31
7.0.40.0100.05720.10
7.0.30.0100.04020.16
7.0.20.0000.05720.10
7.0.10.0030.06320.05
7.0.00.0030.04320.13
5.6.280.0100.05720.93
5.6.250.0130.07320.78
5.6.240.0070.04320.61
5.6.230.0070.05020.63
5.6.220.0070.04020.67
5.6.210.0000.04320.77
5.6.200.0030.04021.14
5.6.190.0100.03721.09
5.6.180.0030.05320.96
5.6.170.0070.03721.00
5.6.160.0130.03021.02
5.6.150.0030.05721.06
5.6.140.0030.04021.09
5.6.130.0030.04321.10
5.6.120.0000.04321.06
5.6.110.0100.04721.04
5.6.100.0030.04321.07
5.6.90.0070.03721.00
5.6.80.0030.04020.41
5.6.70.0030.04020.41
5.6.60.0070.03720.38
5.6.50.0000.04320.35
5.6.40.0070.03720.44
5.6.30.0070.04020.33
5.6.20.0070.04020.49
5.6.10.0030.05320.38
5.6.00.0070.03320.38
5.5.380.0130.07320.45
5.5.370.0130.03320.39
5.5.360.0070.04720.41
5.5.350.0030.04020.39
5.5.340.0000.04320.93
5.5.330.0030.04020.94
5.5.320.0000.04320.83
5.5.310.0130.03020.73
5.5.300.0030.03720.92
5.5.290.0070.03720.84
5.5.280.0030.04720.90
5.5.270.0030.04320.89
5.5.260.0070.04320.75
5.5.250.0000.04020.65
5.5.240.0100.03320.30
5.5.230.0070.03320.28
5.5.220.0130.03020.25
5.5.210.0030.04020.30
5.5.200.0000.03720.00
5.5.190.0030.04020.13
5.5.180.0000.04320.12
5.5.160.0070.03020.21
5.5.150.0130.06720.27
5.5.140.0070.05720.24
5.5.130.0030.04720.14
5.5.120.0030.04020.09
5.5.110.0100.07320.21
5.5.100.0170.02320.17
5.5.90.0070.07319.98
5.5.80.0000.08319.95
5.5.70.0000.08320.11
5.5.60.0070.05720.06
5.5.50.0230.06020.14
5.5.40.0070.06020.15
5.5.30.0170.06719.92
5.5.20.0100.06720.12
5.5.10.0030.08720.00
5.5.00.0030.07720.02

preferences:
32.95 ms | 400 KiB | 5 Q