3v4l.org

run code in 300+ PHP versions simultaneously
<?php class logger { function __construct() { print "logger constructing\n"; } function __wakeup() { print "logger wakeup\n"; } function __destruct() { print "logger destruct\n"; } } class obj { var $prop; function __wakeup() { $this->prop = 'awake'; } } $a = []; $a[] = new stdclass; $a[0]->one = new logger; $a[] = new obj; $a[1]->prop =& $a[0]; $a[] =& $a[1]->one; var_dump(serialize($a)); $x = 'a:3:{i:0;O:8:"stdClass":1:{i:0;O:6:"logger":0:{}}i:1;O:3:"obj":1:{s:4:"prop";R:2;}i:2;R:3}'; $y = unserialize($x); var_dump($y);

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)
8.3.60.0140.00718.43
8.3.50.0120.00318.17
8.3.40.0140.00418.97
8.3.30.0090.00618.84
8.3.20.0040.00420.29
8.3.10.0080.00020.53
8.3.00.0080.00021.77
8.2.180.0150.00718.52
8.2.170.0070.00722.96
8.2.160.0100.00522.26
8.2.150.0000.00724.18
8.2.140.0030.00624.66
8.2.130.0030.00521.00
8.2.120.0040.00426.35
8.2.110.0100.00720.94
8.2.100.0040.00817.93
8.2.90.0080.00019.17
8.2.80.0070.00417.97
8.2.70.0070.00317.63
8.2.60.0040.00418.04
8.2.50.0030.00718.09
8.2.40.0040.00420.42
8.2.30.0030.00619.51
8.2.20.0040.00417.71
8.2.10.0050.00218.13
8.2.00.0040.00418.14
8.1.280.0090.00525.92
8.1.270.0110.00422.19
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00321.37
8.1.230.0000.01117.82
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0060.00318.37
8.1.160.0030.00320.68
8.1.150.0090.00018.89
8.1.140.0040.00419.45
8.1.130.0000.00917.42
8.1.120.0040.00417.44
8.1.110.0040.00417.47
8.1.100.0040.00417.43
8.1.90.0070.00017.45
8.1.80.0040.00417.40
8.1.70.0030.00317.38
8.1.60.0030.00617.60
8.1.50.0050.00317.55
8.1.40.0060.00317.53
8.1.30.0040.00417.70
8.1.20.0040.00417.54
8.1.10.0000.00817.54
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00718.52
8.0.270.0070.00017.16
8.0.260.0040.00416.85
8.0.250.0060.00316.96
8.0.240.0040.00416.95
8.0.230.0050.00317.01
8.0.220.0030.00316.95
8.0.210.0030.00316.95
8.0.200.0050.00317.03
8.0.190.0040.00416.86
8.0.180.0040.00416.97
8.0.170.0080.00016.89
8.0.160.0070.00016.84
8.0.150.0000.00716.88
8.0.140.0000.00716.77
8.0.130.0000.00513.39
8.0.120.0000.00716.85
8.0.110.0030.00316.93
8.0.100.0030.00516.93
8.0.90.0040.00416.96
8.0.80.0000.01516.90
8.0.70.0000.00716.96
8.0.60.0040.00416.97
8.0.50.0040.00416.99
8.0.30.0150.00517.16
8.0.20.0100.00917.40
8.0.10.0040.00317.00
8.0.00.0090.00916.81
7.4.330.0060.00016.87
7.4.320.0030.00316.50
7.4.300.0000.00716.63
7.4.290.0030.00316.67
7.4.280.0040.00416.59
7.4.270.0000.00716.52
7.4.260.0000.00716.52
7.4.250.0070.00016.66
7.4.240.0000.00816.64
7.4.230.0020.00516.72
7.4.220.0140.00316.67
7.4.210.0060.00916.65
7.4.200.0050.00316.50
7.4.160.0130.01016.61
7.4.150.0120.00617.40
7.4.140.0130.00717.86
7.4.130.0130.00716.51
7.4.120.0130.00516.52
7.4.110.0040.01416.65
7.4.100.0130.01016.67
7.4.90.0090.00916.65
7.4.80.0090.01519.39
7.4.70.0090.01216.55
7.4.60.0130.00316.70
7.4.50.0100.00616.52
7.4.40.0030.01416.59
7.4.30.0030.01416.61
7.4.00.0100.00615.06
7.3.330.0060.00013.56
7.3.320.0060.00013.30
7.3.310.0000.00716.36
7.3.300.0000.00716.32
7.3.290.0070.00016.51
7.3.280.0090.01016.43
7.3.270.0090.00917.40
7.3.260.0100.01016.58
7.3.250.0110.00616.45
7.3.240.0080.01016.53
7.3.230.0170.00716.46
7.3.210.0070.01016.60
7.3.200.0100.00716.62
7.3.190.0060.00916.36
7.3.180.0070.01116.32
7.3.170.0070.01016.44
7.3.160.0100.01016.39
7.3.120.0030.01614.99
7.3.110.0130.00615.14
7.3.100.0070.00714.88
7.3.90.0000.01814.95
7.3.80.0040.01215.07
7.3.70.0000.01314.71
7.3.60.0100.00614.82
7.3.50.0030.01214.70
7.3.40.0080.00314.99
7.3.30.0110.00414.86
7.3.20.0040.01116.47
7.3.10.0070.01116.66
7.3.00.0120.00616.34
7.2.330.0030.01416.86
7.2.320.0130.00316.82
7.2.310.0190.00016.61
7.2.300.0060.01816.71
7.2.290.0160.00416.84
7.2.240.0090.00315.02
7.2.230.0030.01215.40
7.2.220.0070.00715.26
7.2.210.0040.01114.97
7.2.200.0070.00714.95
7.2.190.0070.01114.88
7.2.180.0030.01415.24
7.2.170.0030.00614.84
7.2.160.0060.00615.09
7.2.150.0090.00616.94
7.2.140.0060.00916.59
7.2.130.0000.01316.84
7.2.120.0040.01117.11
7.2.110.0090.00616.76
7.2.100.0030.01016.65
7.2.90.0070.00716.91
7.2.80.0030.01016.94
7.2.70.0040.00817.16
7.2.60.0060.00716.88
7.2.50.0100.00316.88
7.2.40.0030.01416.86
7.2.30.0030.00816.93
7.2.20.0030.01316.94
7.2.10.0090.00616.91
7.2.00.0050.00818.30
7.1.330.0030.01415.86
7.1.320.0000.01315.84
7.1.310.0030.01015.53
7.1.300.0100.00315.66
7.1.290.0090.00315.59
7.1.280.0100.00715.75
7.1.270.0000.01315.70
7.1.260.0100.00715.79
7.1.250.0040.01115.84
7.1.200.0050.00515.57
7.1.100.0040.01117.80
7.1.70.0000.00917.15
7.1.60.0060.01919.19
7.1.50.0000.01416.96
7.1.00.0030.07722.36
7.0.200.0920.01014.79
7.0.60.0100.07321.74
7.0.50.0100.07717.90
7.0.40.0030.08720.10
7.0.30.0400.07720.08
7.0.20.0300.07720.12
7.0.10.0100.08320.12
7.0.00.0100.07320.05
5.6.280.0000.03321.15
5.6.210.0070.04020.48
5.6.200.0030.05318.23
5.6.190.0030.05320.66
5.6.180.0300.07720.39
5.6.170.0400.04020.48
5.6.160.0030.04720.54
5.6.150.0030.04018.17
5.6.140.0030.06018.14
5.6.130.0030.04018.24
5.6.120.0100.08021.13
5.6.110.0070.08321.01
5.6.100.0000.04321.14
5.6.90.0170.06721.11
5.6.80.0170.07020.54
5.5.350.0330.06720.45
5.5.340.0030.07718.08
5.5.330.0130.07020.26
5.5.320.0330.06320.25
5.5.310.0300.06720.34
5.5.300.0070.03717.98
5.5.290.0070.08017.98
5.5.280.0170.06720.89
5.5.270.0030.07020.87
5.5.260.0170.06320.89
5.5.250.0100.07720.62
5.5.240.0030.07020.05

preferences:
52.96 ms | 401 KiB | 5 Q