3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A implements Serializable { public function unserialize($p) { echo 'uns'; } public function serialize() { return ''; } } class B { public function __wakeup() { echo 'wak';throw new Exception; } public function __destruct() { echo 'des'; } } $g[]=new B; $g[]=new A; echo serialize($g); $s='a:2:{i:0;O:1:"B":0:{}i:1;C:1:"A":0:{}}'; var_dump(unserialize($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.0170.00018.55
8.3.50.0090.00618.14
8.3.40.0090.00618.79
8.3.30.0110.00418.84
8.3.20.0070.00021.90
8.3.10.0030.00621.79
8.3.00.0030.00519.38
8.2.180.0120.00918.29
8.2.170.0080.00822.96
8.2.160.0070.01020.38
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00018.09
8.2.120.0000.00826.35
8.2.110.0030.00720.98
8.2.100.0000.01118.03
8.2.90.0030.00917.88
8.2.80.0000.00817.97
8.2.70.0040.00418.04
8.2.60.0000.00818.22
8.2.50.0040.00418.10
8.2.40.0030.00620.61
8.2.30.0000.00719.43
8.2.20.0030.00618.16
8.2.10.0040.00418.13
8.2.00.0060.00317.81
8.1.280.0110.00425.92
8.1.270.0060.00321.98
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00319.42
8.1.230.0030.00720.96
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0070.00417.35
8.1.190.0000.00917.38
8.1.180.0030.00618.10
8.1.170.0070.00020.11
8.1.160.0000.00818.85
8.1.150.0000.00720.25
8.1.140.0000.00819.58
8.1.130.0070.00019.08
8.1.120.0000.00717.47
8.1.110.0000.00817.43
8.1.100.0050.00317.37
8.1.90.0000.00717.37
8.1.80.0000.00817.34
8.1.70.0000.00717.41
8.1.60.0040.00417.54
8.1.50.0030.00617.53
8.1.40.0030.00617.59
8.1.30.0030.00517.66
8.1.20.0030.00517.65
8.1.10.0000.00917.60
8.1.00.0030.00517.49
8.0.300.0070.00020.11
8.0.290.0070.00016.75
8.0.280.0040.00418.50
8.0.270.0000.00717.21
8.0.260.0030.00317.27
8.0.250.0000.00717.09
8.0.240.0030.00317.00
8.0.230.0000.01016.89
8.0.220.0040.00417.01
8.0.210.0030.00316.98
8.0.200.0040.00417.05
8.0.190.0050.00217.06
8.0.180.0000.00717.03
8.0.170.0000.00716.95
8.0.160.0040.00416.93
8.0.150.0000.00716.94
8.0.140.0000.00716.82
8.0.130.0000.00513.41
8.0.120.0040.00416.86
8.0.110.0000.00816.74
8.0.100.0000.00716.91
8.0.90.0000.00816.83
8.0.80.0100.01016.97
8.0.70.0000.00816.76
8.0.60.0000.00716.86
8.0.50.0000.00716.96
8.0.30.0040.01217.10
8.0.20.0120.00917.40
8.0.10.0040.00417.09
8.0.00.0050.01116.96
7.4.330.0000.00615.55
7.4.320.0030.00316.45
7.4.300.0030.00316.53
7.4.290.0000.00716.56
7.4.280.0080.00016.65
7.4.270.0000.00716.37
7.4.260.0030.00316.51
7.4.250.0040.00416.47
7.4.240.0030.00316.62
7.4.230.0040.00416.47
7.4.220.0100.00716.64
7.4.210.0000.01416.66
7.4.200.0050.00216.48
7.4.160.0100.00816.41
7.4.150.0110.00717.40
7.4.140.0080.01017.86
7.4.130.0070.00916.55
7.4.120.0130.00916.56
7.4.110.0090.01516.46
7.4.100.0110.00716.57
7.4.90.0140.00316.66
7.4.80.0130.00319.39
7.4.70.0110.00916.67
7.4.60.0030.01316.61
7.4.50.0030.01016.32
7.4.40.0030.01316.58
7.4.30.0100.00716.41
7.4.00.0090.00315.00
7.3.330.0030.00313.45
7.3.320.0000.00713.24
7.3.310.0050.00216.41
7.3.300.0000.00716.38
7.3.290.0100.00816.42
7.3.280.0120.00616.38
7.3.270.0070.01017.40
7.3.260.0140.01016.54
7.3.250.0090.00816.45
7.3.240.0130.00616.37
7.3.230.0170.00016.41
7.3.210.0030.01616.38
7.3.200.0090.00916.63
7.3.190.0090.01216.50
7.3.180.0090.01216.39
7.3.170.0060.00916.56
7.3.160.0080.00816.51
7.2.330.0070.01016.88
7.2.320.0090.00816.80
7.2.310.0190.00316.65
7.2.300.0070.01116.65
7.2.290.0040.01816.71
7.2.60.0350.00716.99
7.2.50.0030.00716.84
7.2.00.0130.00619.38
7.1.200.0030.00615.68
7.1.100.0790.00416.11
7.1.70.0000.01417.11
7.1.60.0070.01416.84
7.1.50.0110.01116.96
7.1.10.0030.07022.25
7.1.00.0070.05722.41
7.0.200.0000.01216.68
7.0.150.0030.07321.89
7.0.140.0070.06021.90
7.0.130.0030.06321.83
7.0.120.0130.04722.01
7.0.110.0100.05321.98
7.0.100.0070.05721.89
7.0.90.0100.05721.99
7.0.80.0100.05721.86
7.0.70.0130.05021.87
7.0.60.0070.06021.89
7.0.50.0030.06022.05
7.0.40.0070.06021.93
7.0.30.0100.05321.86
7.0.20.0130.05021.96
7.0.10.0100.05321.89
7.0.00.0070.08321.92

preferences:
116.16 ms | 401 KiB | 5 Q