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}'; var_dump($x); $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.0120.00918.43
8.3.50.0090.01222.11
8.3.40.0090.00618.63
8.3.30.0120.00318.79
8.3.20.0040.00420.35
8.3.10.0040.00420.65
8.3.00.0080.00021.90
8.2.180.0090.00618.41
8.2.170.0100.00722.96
8.2.160.0070.00722.18
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00021.07
8.2.120.0000.00826.35
8.2.110.0050.00522.00
8.2.100.0120.00019.89
8.2.90.0040.00417.75
8.2.80.0050.00318.73
8.2.70.0050.00317.93
8.2.60.0040.00417.75
8.2.50.0040.00418.05
8.2.40.0030.00518.34
8.2.30.0040.00418.04
8.2.20.0040.00417.71
8.2.10.0000.00718.11
8.2.00.0080.00018.00
8.1.280.0070.00725.92
8.1.270.0140.00022.14
8.1.260.0080.00028.09
8.1.250.0060.00328.09
8.1.240.0040.00423.79
8.1.230.0040.00819.16
8.1.220.0050.00317.74
8.1.210.0090.00018.77
8.1.200.0100.00017.22
8.1.190.0030.00517.25
8.1.180.0040.00418.10
8.1.170.0080.00018.56
8.1.160.0070.00018.74
8.1.150.0080.00018.77
8.1.140.0050.00319.43
8.1.130.0000.00817.67
8.1.120.0000.00717.52
8.1.110.0000.00717.36
8.1.100.0000.00817.45
8.1.90.0080.00017.44
8.1.80.0000.00817.45
8.1.70.0000.00717.32
8.1.60.0040.00417.71
8.1.50.0040.00417.56
8.1.40.0030.00517.48
8.1.30.0030.00617.62
8.1.20.0080.00017.54
8.1.10.0040.00417.62
8.1.00.0000.00717.54
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.62
8.0.270.0030.00317.30
8.0.260.0000.00617.17
8.0.250.0040.00417.01
8.0.240.0080.00016.98
8.0.230.0000.00816.88
8.0.220.0000.00716.97
8.0.210.0070.00016.97
8.0.200.0070.00017.02
8.0.190.0000.00717.00
8.0.180.0050.00216.85
8.0.170.0000.00716.97
8.0.160.0070.00016.89
8.0.150.0040.00416.86
8.0.140.0000.00816.85
8.0.130.0060.00013.24
8.0.120.0040.00416.95
8.0.110.0070.00016.92
8.0.100.0040.00416.71
8.0.90.0000.00816.84
8.0.80.0100.00716.92
8.0.70.0040.00416.93
8.0.60.0060.00316.88
8.0.50.0070.00016.75
8.0.30.0080.00917.14
8.0.20.0150.00417.42
8.0.10.0000.00716.93
8.0.00.0110.00716.79
7.4.330.0050.00016.67
7.4.320.0000.00716.53
7.4.300.0000.00616.46
7.4.290.0000.00716.46
7.4.280.0040.00416.54
7.4.270.0070.00016.70
7.4.260.0030.00516.51
7.4.250.0040.00416.51
7.4.240.0000.00716.60
7.4.230.0070.00016.72
7.4.220.0140.00416.58
7.4.210.0140.00516.49
7.4.200.0070.00016.73
7.4.160.0110.01116.54
7.4.150.0140.00317.40
7.4.140.0110.01017.86
7.4.130.0130.00616.56
7.4.120.0100.00816.58
7.4.110.0030.01416.65
7.4.100.0070.01016.66
7.4.90.0110.00716.52
7.4.80.0150.00319.39
7.4.70.0120.00916.56
7.4.60.0060.01016.61
7.4.50.0000.01716.64
7.4.40.0070.01416.38
7.4.30.0060.01116.67
7.4.00.0050.01115.00
7.3.330.0050.00013.31
7.3.320.0050.00013.25
7.3.310.0000.00616.57
7.3.300.0000.00616.33
7.3.290.0000.00716.42
7.3.280.0070.01216.47
7.3.270.0040.01517.40
7.3.260.0100.01016.49
7.3.250.0110.00516.56
7.3.240.0100.00716.63
7.3.230.0160.00916.39
7.3.210.0110.00616.67
7.3.200.0040.01316.62
7.3.190.0080.00816.42
7.3.180.0140.00416.48
7.3.170.0050.01616.46
7.3.160.0070.01016.59
7.3.120.0140.00414.68
7.3.110.0060.00915.19
7.3.100.0000.01714.91
7.3.90.0030.01014.57
7.3.80.0100.00014.94
7.3.70.0030.01015.05
7.3.60.0040.01115.03
7.3.50.0130.00014.87
7.3.40.0000.01314.65
7.3.30.0070.01014.82
7.3.20.0110.00016.72
7.3.10.0040.00716.64
7.3.00.0070.00716.67
7.2.330.0150.00616.48
7.2.320.0070.01016.82
7.2.310.0110.01116.79
7.2.300.0000.01616.82
7.2.290.0080.01216.61
7.2.250.0080.01115.13
7.2.240.0150.00615.13
7.2.230.0110.00414.81
7.2.220.0060.00915.29
7.2.210.0040.01115.05
7.2.200.0090.00314.98
7.2.190.0090.00614.84
7.2.180.0070.01015.16
7.2.170.0100.00715.03
7.2.60.0030.00717.09
7.2.00.0110.00319.55
7.1.330.0100.00715.84
7.1.320.0040.01115.71
7.1.310.0080.00515.93
7.1.300.0000.01115.68
7.1.290.0100.00715.71
7.1.280.0070.01015.82
7.1.270.0080.00815.83
7.1.260.0030.01015.85
7.1.200.0040.00815.70
7.1.100.0100.00717.57
7.1.70.0090.00617.23
7.1.60.0120.01219.19
7.1.50.0070.00716.96
7.1.00.0030.07722.57
7.0.200.0560.00314.89
7.0.60.0070.06321.66
7.0.50.0000.05017.91
7.0.40.0130.06720.23
7.0.30.0400.07320.09
7.0.20.0330.07020.09
7.0.10.0070.06020.24
7.0.00.0270.06720.16
5.6.280.0000.03721.07
5.6.210.0100.07720.48
5.6.200.0100.04018.18
5.6.190.0070.09020.45
5.6.180.0430.06720.41
5.6.170.0230.07720.52
5.6.160.0100.07020.70
5.6.150.0000.04318.30
5.6.140.0070.08018.17
5.6.130.0000.05318.17
5.6.120.0130.05021.05
5.6.110.0100.07021.04
5.6.100.0070.03721.12
5.6.90.0130.08320.97
5.6.80.0130.07720.36
5.5.350.0370.06720.34
5.5.340.0000.06318.00
5.5.330.0100.05720.31
5.5.320.0200.04720.30
5.5.310.0200.08320.32
5.5.300.0070.03717.95
5.5.290.0070.08018.09
5.5.280.0070.06320.78
5.5.270.0030.04320.97
5.5.260.0030.05320.89
5.5.250.0000.08320.67
5.5.240.0070.07720.09

preferences:
43.33 ms | 401 KiB | 5 Q