3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c1 { public $a = 1; public $b = 2; } class c2 implements Serializable { public serialize() { return 'test'; } public unserialize($str) {} } $o1 = new c1; $o2 = new c2; echo serialize($o1) . "\n"; echo serialize($o2) . "\n";

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.170.0210.05512.38
5.4.160.0210.04312.37
5.4.150.0190.04212.37
5.4.140.0240.05312.06
5.4.130.0130.04612.04
5.4.120.0160.04512.01
5.4.110.0150.04212.00
5.4.100.0160.04412.00
5.4.90.0190.04212.00
5.4.80.0270.06212.00
5.4.70.0180.04311.99
5.4.60.0170.04111.99
5.4.50.0240.06511.99
5.4.40.0180.04311.99
5.4.30.0190.04311.98
5.4.20.0150.04711.98
5.4.10.0210.05411.98
5.4.00.0160.04311.47
5.3.270.0200.04512.72
5.3.260.0210.04112.72
5.3.250.0200.04312.72
5.3.240.0190.04412.72
5.3.230.0230.05812.71
5.3.220.0180.04512.68
5.3.210.0190.04312.68
5.3.200.0190.04612.68
5.3.190.0160.04712.67
5.3.180.0180.04512.67
5.3.170.0160.04412.67
5.3.160.0220.07012.67
5.3.150.0160.04412.67
5.3.140.0160.04512.66
5.3.130.0200.04112.66
5.3.120.0170.04612.65
5.3.110.0180.06012.66
5.3.100.0190.05712.12
5.3.90.0160.04312.09
5.3.80.0130.04712.08
5.3.70.0140.04612.08
5.3.60.0200.04112.06
5.3.50.0190.05612.01
5.3.40.0180.04512.01
5.3.30.0290.06211.97
5.3.20.0130.06011.76
5.3.10.0190.03811.72
5.3.00.0150.04211.70

preferences:
138.65 ms | 1394 KiB | 7 Q