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[0]->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.0130.01018.55
8.3.50.0090.00618.13
8.3.40.0150.00618.70
8.3.30.0120.00318.76
8.3.20.0040.00420.29
8.3.10.0060.00320.66
8.3.00.0070.00023.54
8.2.180.0100.01018.54
8.2.170.0110.00422.96
8.2.160.0100.00322.26
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00020.93
8.2.120.0070.00026.35
8.2.110.0090.00022.25
8.2.100.0060.00617.93
8.2.90.0000.00819.36
8.2.80.0000.00817.97
8.2.70.0070.00317.63
8.2.60.0060.00318.05
8.2.50.0030.00618.09
8.2.40.0000.00820.55
8.2.30.0030.00819.43
8.2.20.0030.00517.64
8.2.10.0060.00318.04
8.2.00.0030.00517.97
8.1.280.0180.00425.92
8.1.270.0080.01222.04
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0060.00322.71
8.1.230.0110.00017.82
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0030.00618.34
8.1.160.0020.00520.79
8.1.150.0040.00418.91
8.1.140.0050.00319.60
8.1.130.0000.00717.68
8.1.120.0040.00417.44
8.1.110.0030.00617.43
8.1.100.0050.00217.44
8.1.90.0000.00817.46
8.1.80.0050.00317.45
8.1.70.0070.00017.41
8.1.60.0030.00517.63
8.1.50.0030.00517.43
8.1.40.0000.00817.55
8.1.30.0080.00017.72
8.1.20.0000.00817.43
8.1.10.0040.00417.53
8.1.00.0030.00517.52
8.0.300.0000.00718.77
8.0.290.0050.00316.88
8.0.280.0030.00318.36
8.0.270.0030.00617.30
8.0.260.0000.00617.21
8.0.250.0060.00316.95
8.0.240.0040.00416.95
8.0.230.0030.00316.98
8.0.220.0040.00416.87
8.0.210.0000.00717.02
8.0.200.0030.00316.99
8.0.190.0000.00716.91
8.0.180.0070.00016.97
8.0.170.0040.00416.95
8.0.160.0000.00716.91
8.0.150.0000.00716.71
8.0.140.0000.00816.71
8.0.130.0030.00313.38
8.0.120.0000.00716.79
8.0.110.0040.00416.95
8.0.100.0090.00016.93
8.0.90.0030.00516.93
8.0.80.0060.01116.89
8.0.70.0040.00416.98
8.0.60.0050.00317.00
8.0.50.0070.00016.82
8.0.30.0080.00917.13
8.0.20.0120.00917.40
8.0.10.0040.00417.02
8.0.00.0100.00816.85
7.4.330.0000.00516.79
7.4.320.0000.00616.54
7.4.300.0030.00316.62
7.4.290.0030.00316.70
7.4.280.0070.00016.39
7.4.270.0030.00316.61
7.4.260.0030.00516.49
7.4.250.0070.00016.65
7.4.240.0040.00416.49
7.4.230.0070.00016.44
7.4.220.0060.01216.69
7.4.210.0090.00716.55
7.4.200.0020.00516.43
7.4.160.0150.00916.41
7.4.150.0070.01217.40
7.4.140.0090.01317.86
7.4.130.0060.01216.40
7.4.120.0090.00916.59
7.4.110.0150.01016.44
7.4.100.0100.01316.57
7.4.90.0100.00716.55
7.4.80.0030.02119.39
7.4.70.0040.01816.45
7.4.60.0000.01616.51
7.4.50.0060.00616.61
7.4.40.0040.01316.38
7.4.30.0100.00716.54
7.4.00.0130.00315.26
7.3.330.0000.00513.30
7.3.320.0000.00513.54
7.3.310.0000.00716.45
7.3.300.0030.00316.46
7.3.290.0000.00716.48
7.3.280.0080.01016.50
7.3.270.0170.00317.40
7.3.260.0130.00716.54
7.3.250.0100.01216.37
7.3.240.0120.00716.37
7.3.230.0110.01216.59
7.3.210.0070.01016.41
7.3.200.0100.01116.48
7.3.190.0130.00316.62
7.3.180.0030.01316.39
7.3.170.0110.00816.43
7.3.160.0070.01416.69
7.2.330.0190.00716.66
7.2.320.0110.01116.45
7.2.310.0080.00816.72
7.2.300.0100.00516.64
7.2.290.0050.01816.80
7.2.60.0180.00016.67
7.2.00.0030.00919.28
7.1.200.0030.01015.69
7.1.100.0130.00317.62
7.1.70.0040.00417.27
7.1.60.0160.00919.19
7.1.50.0060.01317.07
7.1.00.0070.07322.38
7.0.200.0740.00314.72
7.0.60.0100.05721.61
7.0.50.0130.06317.75
7.0.40.0070.09019.97
7.0.30.0330.06020.23
7.0.20.0330.07720.12
7.0.10.0100.08720.26
7.0.00.0100.03720.11
5.6.280.0000.04020.82
5.6.210.0130.08720.47
5.6.200.0100.08018.29
5.6.190.0130.08720.47
5.6.180.0330.06320.61
5.6.170.0330.06720.50
5.6.160.0100.07320.43
5.6.150.0200.07018.18
5.6.140.0070.07018.14
5.6.130.0070.03718.28
5.6.120.0130.03320.98
5.6.110.0100.08320.96
5.6.100.0100.08320.99
5.6.90.0030.06021.02
5.6.80.0130.07720.44
5.5.350.0200.04720.41
5.5.340.0070.05717.98
5.5.330.0170.04320.13
5.5.320.0600.05020.20
5.5.310.0270.08020.24
5.5.300.0070.06017.97
5.5.290.0070.07018.08
5.5.280.0070.08320.81
5.5.270.0070.08320.85
5.5.260.0170.07320.88
5.5.250.0130.05720.45
5.5.240.0000.08020.07

preferences:
62.64 ms | 400 KiB | 5 Q