3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BranchScheduleItem implements Serializable{ protected $title; protected $morning; protected $afternoon; public function serialize() { return serialize([ 'title' => $this->title, 'morning' => $this->morning, 'afternoon' => $this->afternoon, ]); } public function unserialize($serialized) { $data = unserialize($serialized); $this->title = $data['title']; $this->morning = $data['morning']; $this->afternoon = $data['afternoon']; } } $o = new BranchScheduleItem; $s = serialize($o); $a = unserialize($s); print_r($a); print_r($s);

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.0040.01518.53
8.3.50.0100.00716.35
8.3.40.0060.00918.66
8.3.30.0070.00718.83
8.3.20.0050.00319.07
8.3.10.0000.00819.20
8.3.00.0030.00518.05
8.2.180.0040.01218.43
8.2.170.0120.00622.96
8.2.160.0080.00819.16
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00419.89
8.2.120.0030.00726.35
8.2.110.0060.01220.52
8.2.100.0060.00318.03
8.2.90.0080.00017.74
8.2.80.0000.00818.91
8.2.70.0060.00318.04
8.2.60.0040.00418.04
8.2.50.0080.00018.10
8.2.40.0000.00820.95
8.2.30.0050.00319.57
8.2.20.0050.00318.12
8.2.10.0030.00518.25
8.2.00.0040.00419.46
8.1.280.0090.00625.92
8.1.270.0040.00422.14
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00923.91
8.1.230.0040.00820.84
8.1.220.0000.00818.59
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0080.00017.22
8.1.180.0000.00918.10
8.1.170.0090.00018.57
8.1.160.0000.00718.96
8.1.150.0000.00718.90
8.1.140.0040.00417.77
8.1.130.0070.00018.99
8.1.120.0040.00417.49
8.1.110.0040.00317.45
8.1.100.0090.00017.46
8.1.90.0080.00317.38
8.1.80.0030.00617.47
8.1.70.0000.00817.39
8.1.60.0000.00817.56
8.1.50.0050.00317.53
8.1.40.0030.00617.59
8.1.30.0000.00717.59
8.1.20.0000.00817.62
8.1.10.0030.00517.52
8.1.00.0040.00417.34
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0030.00318.46
8.0.270.0000.00717.23
8.0.260.0000.00917.18
8.0.250.0030.00317.05
8.0.240.0040.00417.04
8.0.230.0070.00016.90
8.0.220.0070.00016.86
8.0.210.0040.00416.93
8.0.200.0030.00317.05
8.0.190.0070.00017.02
8.0.180.0080.00017.00
8.0.170.0040.00416.88
8.0.160.0050.00316.94
8.0.150.0040.00416.82
8.0.140.0050.00216.83
8.0.130.0000.00513.39
8.0.120.0080.00016.84
8.0.110.0000.00816.77
8.0.100.0070.00016.93
8.0.90.0000.00717.00
8.0.80.0060.01316.98
8.0.70.0000.00716.83
8.0.60.0100.00016.92
8.0.50.0000.00716.91
8.0.30.0110.00817.07
8.0.20.0120.00917.40
8.0.10.0000.00917.16
8.0.00.0070.01216.68
7.4.330.0000.00515.55
7.4.320.0000.00616.53
7.4.300.0070.00016.43
7.4.290.0000.00716.57
7.4.280.0040.00416.51
7.4.270.0040.00416.59
7.4.260.0030.00316.59
7.4.250.0050.00316.45
7.4.240.0000.00716.61
7.4.230.0000.00716.40
7.4.220.0080.00016.33
7.4.210.0090.00616.62
7.4.200.0070.00016.71
7.4.160.0110.00816.51
7.4.140.0150.00917.86
7.4.130.0140.00416.59
7.4.120.0100.00816.52
7.4.110.0120.01216.40
7.4.100.0110.00616.63
7.4.90.0100.00716.51
7.4.80.0150.01519.39
7.4.70.0130.00716.36
7.4.60.0110.00616.52
7.4.50.0040.01116.41
7.4.40.0140.00816.29
7.4.00.0030.01614.92
7.3.330.0030.00313.22
7.3.320.0030.00313.32
7.3.310.0040.00416.46
7.3.300.0070.00016.32
7.3.290.0030.00316.32
7.3.280.0080.01216.30
7.3.260.0080.01016.35
7.3.240.0110.00816.50
7.3.230.0290.02016.39
7.3.210.0070.01116.27
7.3.200.0080.01216.46
7.3.190.0100.01016.46
7.3.180.0070.01016.43
7.3.170.0150.00016.34
7.3.160.0070.01016.36
7.2.330.0070.01516.60
7.2.320.0100.00716.84
7.2.310.0070.01016.48
7.2.300.0050.01116.52
7.2.290.0090.01016.53
7.2.60.2970.00915.14
7.2.50.2330.00914.91
7.2.40.1200.01215.42
7.2.30.1130.01015.42
7.2.20.3750.00915.36
7.2.10.1770.01115.62
7.2.00.1630.00915.36
7.1.200.0040.00715.48
7.1.170.3450.00913.74
7.1.160.1930.01216.83
7.1.150.1260.01316.71
7.1.140.2580.01116.71
7.1.130.1510.01016.80
7.1.120.2600.01116.93
7.1.110.1490.01116.33
7.1.100.3160.00916.30
7.1.90.4310.01016.12
7.1.80.4670.01316.24
7.1.70.3960.01215.31
7.1.60.4110.01833.28
7.1.50.5800.01632.92
7.1.40.7200.02032.61
7.1.30.6550.01432.50
7.1.20.6360.01832.85
7.1.10.4140.01314.80
7.1.00.4060.01214.84

preferences:
58.18 ms | 400 KiB | 5 Q