3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c { public $prop; function __wakeup() { $this->prop = 'awake'; } } $c = new c; $c->prop = new stdclass; $a = [$c]; $a[] =& $c->prop; $s = serialize($a); var_dump($s); var_dump($a); $a2 = unserialize($s); var_dump($a2); $a2[0] = 'ref?'; var_dump($a2);

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.70.0070.01116.36
8.3.60.0140.00718.43
8.3.50.0120.00721.99
8.3.40.0180.00418.71
8.3.30.0090.00618.66
8.3.20.0060.00920.31
8.3.10.0060.00320.52
8.3.00.0000.00721.90
8.2.190.0060.01518.08
8.2.180.0100.01016.36
8.2.170.0060.00922.96
8.2.160.0080.00622.13
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00420.89
8.2.120.0060.00326.35
8.2.110.0060.00319.27
8.2.100.0080.00318.22
8.2.90.0000.00819.22
8.2.80.0030.00717.97
8.2.70.0080.00017.75
8.2.60.0050.00317.93
8.2.50.0040.00418.09
8.2.40.0090.00020.44
8.2.30.0050.00219.57
8.2.20.0040.00417.76
8.2.10.0000.00718.01
8.2.00.0060.00318.08
8.1.280.0110.00425.92
8.1.270.0150.00421.94
8.1.260.0000.00828.09
8.1.250.0030.00528.09
8.1.240.0090.00023.92
8.1.230.0080.00420.89
8.1.220.0030.00517.78
8.1.210.0040.00418.77
8.1.200.0040.00717.35
8.1.190.0000.00817.48
8.1.180.0030.00518.10
8.1.170.0030.00518.46
8.1.160.0040.00420.81
8.1.150.0050.00218.77
8.1.140.0080.00019.65
8.1.130.0030.00317.70
8.1.120.0050.00217.50
8.1.110.0040.00417.48
8.1.100.0040.00417.36
8.1.90.0050.00217.42
8.1.80.0000.00817.48
8.1.70.0040.00417.48
8.1.60.0040.00417.46
8.1.50.0000.00817.50
8.1.40.0040.00417.53
8.1.30.0030.00617.68
8.1.20.0040.00417.53
8.1.10.0080.00017.55
8.1.00.0000.00817.59
8.0.300.0070.00019.89
8.0.290.0000.00716.75
8.0.280.0040.00418.46
8.0.270.0030.00317.16
8.0.260.0000.00617.25
8.0.250.0070.00317.00
8.0.240.0060.00317.05
8.0.230.0060.00016.99
8.0.220.0000.00716.99
8.0.210.0030.00316.93
8.0.200.0030.00317.03
8.0.190.0050.00216.94
8.0.180.0030.00717.00
8.0.170.0000.00916.96
8.0.160.0030.00316.86
8.0.150.0050.00217.03
8.0.140.0040.00416.84
8.0.130.0030.00313.36
8.0.120.0000.00816.97
8.0.110.0030.00516.90
8.0.100.0040.00416.91
8.0.90.0030.00516.80
8.0.80.0150.00017.02
8.0.70.0000.00717.06
8.0.60.0040.00416.80
8.0.50.0000.00716.95
8.0.30.0100.00617.15
8.0.20.0140.00817.40
8.0.10.0000.00817.15
8.0.00.0050.01216.77
7.4.330.0050.00016.83
7.4.320.0060.00016.65
7.4.300.0030.00316.65
7.4.290.0030.00516.64
7.4.280.0080.00016.61
7.4.270.0000.00616.51
7.4.260.0080.00016.47
7.4.250.0040.00416.47
7.4.240.0040.00416.61
7.4.230.0000.00816.39
7.4.220.0060.01216.68
7.4.210.0140.00016.50
7.4.200.0070.00016.43
7.4.160.0110.00616.62
7.4.150.0060.01317.40
7.4.140.0100.00817.86
7.4.130.0100.00716.52
7.4.120.0070.01416.63
7.4.110.0100.01016.38
7.4.100.0100.01016.59
7.4.90.0120.01216.52
7.4.80.0030.01519.39
7.4.70.0030.01316.58
7.4.60.0050.01316.39
7.4.50.0030.00816.48
7.4.40.0150.00916.59
7.4.30.0060.01216.44
7.4.00.0080.00615.22
7.3.330.0000.00513.23
7.3.320.0000.00613.21
7.3.310.0000.00816.25
7.3.300.0040.00416.39
7.3.290.0070.01116.39
7.3.280.0060.01116.42
7.3.270.0080.01117.40
7.3.260.0140.00316.54
7.3.250.0090.00816.46
7.3.240.0130.00716.55
7.3.230.0180.00916.55
7.3.210.0070.01116.41
7.3.200.0160.00016.36
7.3.190.0000.01616.30
7.3.180.0080.00816.26
7.3.170.0110.00616.31
7.3.160.0120.00416.38
7.3.120.0040.01414.74
7.3.110.0090.00614.73
7.3.100.0100.00715.09
7.3.90.0060.00614.89
7.3.80.0070.01014.90
7.3.70.0130.00315.03
7.3.60.0170.00014.88
7.3.50.0000.01314.79
7.3.40.0000.01114.70
7.3.30.0130.00314.73
7.3.20.0080.00016.63
7.3.10.0100.00316.63
7.3.00.0140.00416.75
7.2.330.0200.00016.59
7.2.320.0090.00916.36
7.2.310.0130.00316.72
7.2.300.0090.00916.80
7.2.290.0060.01216.73
7.2.240.0040.00715.17
7.2.230.0000.01215.02
7.2.220.0100.00615.28
7.2.210.0080.00815.05
7.2.200.0090.00314.98
7.2.190.0130.00315.15
7.2.180.0060.00315.20
7.2.170.0110.00415.05
7.2.160.0000.01215.04
7.2.150.0030.01017.04
7.2.140.0030.01016.90
7.2.130.0080.00417.00
7.2.120.0060.00916.79
7.2.110.0040.00816.80
7.2.100.0100.00716.60
7.2.90.0000.01417.09
7.2.80.0030.01216.67
7.2.70.0030.00916.64
7.2.60.0160.00416.58
7.2.50.0040.01116.79
7.2.40.0060.00716.81
7.2.30.0100.00316.88
7.2.20.0080.00416.91
7.2.10.0080.00817.03
7.2.00.0050.00618.02
7.1.330.0030.00815.85
7.1.320.0000.01515.95
7.1.310.0080.00815.82
7.1.300.0070.00715.62
7.1.290.0000.01215.80
7.1.280.0090.00315.69
7.1.270.0030.01215.80
7.1.260.0100.00715.86
7.1.250.0000.01515.84
7.1.200.0090.00615.86
7.1.100.0070.00717.63
7.1.70.0030.01017.01
7.1.60.0170.00719.19
7.1.50.0040.00816.96
7.1.00.0030.07322.48
7.0.200.0510.00314.66
7.0.60.0100.03021.81
7.0.50.0000.04717.88
7.0.40.0030.05320.29
7.0.30.0170.05320.25
7.0.20.0330.05320.19
7.0.10.0130.08020.06
7.0.00.0330.06320.23
5.6.280.0030.03720.89
5.6.210.0130.07320.55
5.6.200.0030.07718.15
5.6.190.0200.06020.41
5.6.180.0300.05020.60
5.6.170.0130.04320.47
5.6.160.0130.07720.57
5.6.150.0030.04018.15
5.6.140.0000.05018.17
5.6.130.0100.03718.14
5.6.120.0070.05321.02
5.6.110.0100.05721.00
5.6.100.0030.04020.98
5.6.90.0030.08721.11
5.6.80.0030.08320.51
5.5.350.0300.08320.39
5.5.340.0100.06718.05
5.5.330.0000.07020.42
5.5.320.0700.06720.32
5.5.310.0370.07320.34
5.5.300.0070.03318.07
5.5.290.0100.06317.98
5.5.280.0070.08020.80
5.5.270.0000.04320.77
5.5.260.0130.03320.73
5.5.250.0130.06020.69
5.5.240.0030.07020.07

preferences:
44.28 ms | 401 KiB | 5 Q