3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { var $one = "111"; function __construct() { echo "construct";} function __destruct() { echo "destruct";} function __wakeup() { echo "wakeup";} } $at = new A(); $x = serialize($at); $u = unserialize($x); print_r "<br/>". $u; ?>

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.320.0040.04412.52
5.4.310.0070.04812.51
5.4.300.0060.04312.51
5.4.290.0080.03612.52
5.4.280.0080.04212.41
5.4.270.0100.04412.41
5.4.260.0060.03812.41
5.4.250.0060.04512.41
5.4.240.0060.03912.41
5.4.230.0070.04612.40
5.4.220.0080.03612.40
5.4.210.0050.03612.40
5.4.200.0070.04612.40
5.4.190.0070.04212.39
5.4.180.0100.03712.40
5.4.170.0060.03812.40
5.4.160.0110.04212.40
5.4.150.0070.04012.40
5.4.140.0060.03712.09
5.4.130.0060.03712.07
5.4.120.0090.03812.04
5.4.110.0070.03912.03
5.4.100.0060.03612.03
5.4.90.0060.03712.03
5.4.80.0070.04412.03
5.4.70.0080.04512.02
5.4.60.0040.03812.03
5.4.50.0060.04412.03
5.4.40.0070.03912.02
5.4.30.0040.03912.01
5.4.20.0040.03812.01
5.4.10.0070.03312.01
5.4.00.0040.03711.50
5.3.290.0090.04812.80
5.3.280.0060.04612.71
5.3.270.0060.03912.73
5.3.260.0080.03712.72
5.3.250.0070.04012.72
5.3.240.0050.04112.71
5.3.230.0090.03812.71
5.3.220.0080.04212.68
5.3.210.0070.04112.68
5.3.200.0060.03912.68
5.3.190.0110.04112.68
5.3.180.0070.04012.68
5.3.170.0070.03712.67
5.3.160.0080.03912.68
5.3.150.0040.04012.67
5.3.140.0110.03712.66
5.3.130.0090.04112.65
5.3.120.0090.03612.66
5.3.110.0060.04012.66
5.3.100.0110.03412.13
5.3.90.0070.03612.11
5.3.80.0060.04412.10
5.3.70.0050.04212.10
5.3.60.0080.03912.09
5.3.50.0090.04312.04
5.3.40.0080.03512.04
5.3.30.0080.03311.99
5.3.20.0050.03611.77
5.3.10.0050.03511.74
5.3.00.0050.04611.72
5.2.170.0080.0289.23
5.2.160.0040.0329.23
5.2.150.0030.0339.23
5.2.140.0030.0329.23
5.2.130.0060.0299.19
5.2.120.0050.0339.18
5.2.110.0050.0299.19
5.2.100.0060.0289.18
5.2.90.0040.0319.18
5.2.80.0080.0299.18
5.2.70.0070.0329.18
5.2.60.0080.0299.14
5.2.50.0080.0269.10
5.2.40.0040.0319.08
5.2.30.0060.0339.05
5.2.20.0040.0309.04
5.2.10.0110.0308.95
5.2.00.0060.0298.81
5.1.60.0060.0228.10
5.1.50.0070.0248.09
5.1.40.0040.0258.07
5.1.30.0060.0328.43
5.1.20.0060.0258.45
5.1.10.0070.0348.17
5.1.00.0070.0268.17
5.0.50.0040.0316.66
5.0.40.0080.0246.50
5.0.30.0040.0336.32
5.0.20.0060.0286.28
5.0.10.0070.0246.27
5.0.00.0030.0356.25
4.4.90.0020.0234.78
4.4.80.0070.0184.75
4.4.70.0050.0164.76
4.4.60.0040.0204.75
4.4.50.0060.0174.77
4.4.40.0040.0304.71
4.4.30.0060.0144.76
4.4.20.0020.0164.85
4.4.10.0050.0154.85
4.4.00.0050.0304.76
4.3.110.0020.0174.67
4.3.100.0020.0174.66
4.3.90.0030.0204.63
4.3.80.0020.0254.58
4.3.70.0040.0224.63
4.3.60.0030.0204.62
4.3.50.0070.0174.63
4.3.40.0040.0234.54
4.3.30.0020.0173.30
4.3.20.0040.0203.29
4.3.10.0030.0193.25
4.3.00.0070.01313.57

preferences:
141.79 ms | 1386 KiB | 7 Q