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:4:{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.0150.00718.43
8.3.50.0150.00017.92
8.3.40.0040.01118.79
8.3.30.0090.00919.02
8.3.20.0040.00420.34
8.3.10.0080.00020.48
8.3.00.0030.00621.90
8.2.180.0170.00716.88
8.2.170.0000.01522.96
8.2.160.0030.01322.02
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00021.05
8.2.120.0050.00326.35
8.2.110.0070.00322.27
8.2.100.0070.00418.04
8.2.90.0060.00319.14
8.2.80.0030.00617.97
8.2.70.0030.00617.50
8.2.60.0000.00817.80
8.2.50.0080.00018.09
8.2.40.0000.00720.38
8.2.30.0030.00719.56
8.2.20.0030.00517.70
8.2.10.0000.00817.96
8.2.00.0080.00018.18
8.1.280.0070.00725.92
8.1.270.0110.00422.24
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0030.00920.88
8.1.230.0030.00717.89
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0000.00818.52
8.1.160.0000.00720.65
8.1.150.0040.00418.74
8.1.140.0090.00019.45
8.1.130.0000.00717.56
8.1.120.0000.00717.39
8.1.110.0070.00017.42
8.1.100.0050.00217.50
8.1.90.0060.00317.33
8.1.80.0040.00417.34
8.1.70.0030.00317.41
8.1.60.0030.00517.52
8.1.50.0000.00817.54
8.1.40.0040.00417.39
8.1.30.0040.00417.51
8.1.20.0040.00417.63
8.1.10.0040.00417.59
8.1.00.0040.00417.40
8.0.300.0070.00018.77
8.0.290.0000.00816.88
8.0.280.0040.00418.52
8.0.270.0000.00717.29
8.0.260.0060.00017.19
8.0.250.0060.00316.90
8.0.240.0070.00016.95
8.0.230.0000.00716.97
8.0.220.0000.00716.97
8.0.210.0030.00516.95
8.0.200.0030.00316.98
8.0.190.0040.00417.02
8.0.180.0070.00016.83
8.0.170.0080.00016.85
8.0.160.0050.00217.00
8.0.150.0000.00816.84
8.0.140.0070.00016.91
8.0.130.0070.00013.43
8.0.120.0040.00416.81
8.0.110.0000.00716.96
8.0.100.0030.00516.88
8.0.90.0040.00416.96
8.0.80.0000.01616.99
8.0.70.0040.00416.96
8.0.60.0040.00416.90
8.0.50.0040.00417.05
8.0.30.0120.00917.21
8.0.20.0120.00717.42
8.0.10.0000.00716.84
8.0.00.0080.00916.74
7.4.330.0050.00016.85
7.4.320.0030.00316.48
7.4.300.0040.00416.55
7.4.290.0070.00016.55
7.4.280.0000.00816.61
7.4.270.0000.00716.52
7.4.260.0020.00516.52
7.4.250.0070.00016.45
7.4.240.0040.00416.55
7.4.230.0000.00716.70
7.4.220.0090.00916.50
7.4.210.0080.01116.59
7.4.200.0000.00716.47
7.4.160.0130.00416.41
7.4.150.0100.00717.40
7.4.140.0120.00717.86
7.4.130.0030.01316.61
7.4.120.0030.01316.63
7.4.110.0100.00716.55
7.4.100.0060.01216.30
7.4.90.0080.00816.49
7.4.80.0140.00819.39
7.4.70.0100.00616.69
7.4.60.0030.01316.38
7.4.50.0030.01016.39
7.4.40.0080.00916.36
7.4.30.0140.00316.68
7.4.00.0040.01214.87
7.3.330.0060.00013.47
7.3.320.0060.00013.33
7.3.310.0000.00716.45
7.3.300.0070.00016.33
7.3.290.0000.00716.48
7.3.280.0060.01216.49
7.3.270.0090.00917.40
7.3.260.0120.00816.46
7.3.250.0090.01016.37
7.3.240.0140.00716.50
7.3.230.0130.01016.39
7.3.210.0080.00816.54
7.3.200.0060.01516.42
7.3.190.0140.00316.42
7.3.180.0100.00716.52
7.3.170.0070.01716.64
7.3.160.0070.01016.50
7.3.120.0040.01414.94
7.3.110.0120.00514.79
7.3.100.0020.01214.89
7.3.90.0060.00814.99
7.3.80.0070.00515.07
7.3.70.0090.00314.88
7.3.60.0050.00915.01
7.3.50.0050.00814.73
7.3.40.0040.00714.68
7.3.30.0020.00714.71
7.3.20.0080.00616.72
7.3.10.0050.00716.83
7.3.00.0040.00616.67
7.2.330.0170.00516.48
7.2.320.0030.01416.70
7.2.310.0060.01216.72
7.2.300.0110.00616.38
7.2.290.0130.00416.48
7.2.250.0070.00915.29
7.2.240.0100.01015.16
7.2.230.0090.00915.10
7.2.220.0050.01214.99
7.2.210.0060.00714.93
7.2.200.0110.00115.20
7.2.190.0030.01215.06
7.2.180.0080.00615.19
7.2.170.0080.00615.13
7.2.60.0110.00716.75
7.2.00.0080.00419.64
7.1.330.0030.01215.60
7.1.320.0050.00515.84
7.1.310.0030.01115.77
7.1.300.0020.00915.72
7.1.290.0070.00415.72
7.1.280.0070.01015.66
7.1.270.0070.00915.61
7.1.260.0090.00215.89
7.1.200.0090.00015.58
7.1.100.0090.00618.03
7.1.70.0000.00817.13
7.1.60.0140.01119.19
7.1.50.0000.01716.96
7.1.00.0070.07022.33
7.0.200.2910.00715.10
7.0.60.0100.08321.78
7.0.50.0030.05017.88
7.0.40.0100.05720.10
7.0.30.0370.07320.07
7.0.20.0300.05720.23
7.0.10.0030.07020.19
7.0.00.0100.08320.20
5.6.280.0000.03321.11
5.6.210.0030.04320.51
5.6.200.0070.08718.18
5.6.190.0070.04320.61
5.6.180.0330.04320.55
5.6.170.0370.04320.59
5.6.160.0100.07320.45
5.6.150.0100.03718.18
5.6.140.0100.08318.27
5.6.130.0000.04718.15
5.6.120.0130.06320.90
5.6.110.0170.07321.12
5.6.100.0070.03720.94
5.6.90.0130.05721.00
5.6.80.0130.07320.41
5.5.350.0330.07720.33
5.5.340.0070.06717.98
5.5.330.0100.08320.32
5.5.320.0300.07720.27
5.5.310.0230.08020.30
5.5.300.0030.04018.08
5.5.290.0100.07718.05
5.5.280.0100.08020.77
5.5.270.0100.08720.97
5.5.260.0100.08720.73
5.5.250.0000.08720.50
5.5.240.0000.08020.27

preferences:
38.31 ms | 400 KiB | 5 Q