3v4l.org

run code in 300+ PHP versions simultaneously
<?php class segfault { private static $id = 0; public $name; public function __construct() { self::$id++; $this->name = getclass.'-'.self::$id; } } function string_sfault($s) { echo $s.': '.strlen($s).PHP_EOL; } $stack = array() for($i=0;$i<101;$i++) { $sf = new segfault(); $stack[] = $sf; string_sfault($sf); } ?>

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.5.80.0070.07017.32
5.5.70.0130.06717.19
5.5.60.0100.07017.18
5.5.50.0030.07717.23
5.5.40.0030.07717.29
5.5.30.0170.04017.32
5.5.20.0130.06717.22
5.5.10.0130.07717.19
5.5.00.0130.05717.18
5.4.240.0030.04719.07
5.4.230.0100.04319.04
5.4.220.0100.05719.00
5.4.210.0070.04319.26
5.4.200.0030.04719.14
5.4.190.0070.05018.85
5.4.180.0130.07019.02
5.4.170.0070.07319.12
5.4.160.0070.08019.04
5.4.150.0100.07319.00
5.4.140.0070.06716.36
5.4.130.0000.07716.45
5.4.120.0130.07016.35
5.4.110.0030.06716.35
5.4.100.0070.05016.39
5.4.90.0000.04016.61
5.4.80.0070.03316.63
5.4.70.0030.06716.35
5.4.60.0000.07016.41
5.4.50.0030.06016.21
5.4.40.0030.08316.41
5.4.30.0000.07316.52
5.4.20.0030.07716.24
5.4.10.0000.08316.56
5.4.00.0070.07015.76
5.3.280.0070.08014.59
5.3.270.0100.07314.66
5.3.260.0100.05314.64
5.3.250.0030.07314.46
5.3.240.0070.07314.68
5.3.230.0100.07014.61
5.3.220.0070.04714.61
5.3.210.0070.07714.79
5.3.200.0030.06714.65
5.3.190.0000.04314.68
5.3.180.0030.03714.63
5.3.170.0070.07314.62
5.3.160.0030.06314.61
5.3.150.0130.05014.62
5.3.140.0100.05314.58
5.3.130.0070.07014.60
5.3.120.0100.07314.61
5.3.110.0130.06714.51
5.3.100.0070.06014.11
5.3.90.0030.04013.84
5.3.80.0070.06313.87
5.3.70.0030.04714.12
5.3.60.0070.07714.05
5.3.50.0030.06713.98
5.3.40.0070.06713.99
5.3.30.0030.05013.76
5.3.20.0030.07713.71
5.3.10.0030.05713.68
5.3.00.0070.04013.64

preferences:
135.69 ms | 1394 KiB | 7 Q