3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testing { public function test ($varr = false, &$array = array()){ if (count($array) > 2) return 1; array[] = $this->test(); return 100; } } $testme = new testing(); var_dump($testme->test()); var_dump($testme->test(true));

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)
5.4.230.0100.06319.15
5.4.220.3570.03318.94
5.4.210.3570.03719.19
5.4.200.3230.03319.22
5.4.190.4100.03319.07
5.4.180.3670.03318.86
5.4.170.3700.04319.18
5.4.160.3900.03719.29
5.4.150.3830.04019.11
5.4.140.3870.03716.50
5.4.130.3370.03016.50
5.4.120.3100.03716.48
5.4.110.3200.03716.45
5.4.100.4070.04016.58
5.4.90.4200.03016.40
5.4.80.3770.03316.20
5.4.70.4670.04016.58
5.4.60.3670.04316.45
5.4.50.3500.03316.25
5.4.40.3630.02716.53
5.4.30.3400.03716.18
5.4.20.3200.03016.38
5.4.10.3770.04016.53
5.4.00.4230.03015.82
5.3.280.0070.04714.67
5.3.270.4030.03314.55
5.3.260.3900.04014.51
5.3.250.3770.03314.72
5.3.240.3730.03314.65
5.3.230.3330.03714.75
5.3.220.3470.03314.79
5.3.210.3130.03714.79
5.3.200.3570.03714.53
5.3.190.3700.04014.73
5.3.180.4230.03714.54
5.3.170.3700.04014.55
5.3.160.3300.04014.46
5.3.150.3430.04014.60
5.3.140.3670.03714.56
5.3.130.3430.02714.52
5.3.120.3230.03314.46
5.3.110.3130.03714.77
5.3.100.3600.03714.12
5.3.90.3630.03314.18
5.3.80.3330.04314.07
5.3.70.3400.04314.10
5.3.60.3330.04013.93
5.3.50.3870.03013.86
5.3.40.2970.04313.87
5.3.30.3800.03313.80
5.3.20.3900.03713.62
5.3.10.3770.04013.77
5.3.00.3770.03713.73

preferences:
140.03 ms | 1386 KiB | 7 Q