3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $foo = 123; } $foo = new Foo(); $serializedFoo = serialize($foo); $unserializedFoo = unserialize($serializedFoo, ['allowed_classes' => Foo::class]); var_dump($serializedFoo, $unserializedFoo);

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.00316.38
8.3.50.0170.00316.52
8.3.40.0120.00318.70
8.3.30.0090.00618.55
8.3.20.0090.00020.77
8.3.10.0060.00321.98
8.3.00.0080.00019.60
8.2.180.0120.00916.75
8.2.170.0070.00722.96
8.2.160.0040.01620.35
8.2.150.0170.00025.66
8.2.140.0080.00024.66
8.2.130.0100.00320.47
8.2.120.0070.00026.35
8.2.110.0030.00721.00
8.2.100.0060.00617.91
8.2.90.0050.00319.23
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0070.00017.91
8.2.50.0060.00318.10
8.2.40.0080.00022.16
8.2.30.0040.00420.89
8.2.20.0040.00417.98
8.2.10.0000.00718.03
8.2.00.0050.00217.93
8.1.280.0120.00625.92
8.1.270.0050.00222.20
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00320.87
8.1.230.0060.00619.07
8.1.220.0070.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.57
8.1.160.0000.00719.02
8.1.150.0070.00418.77
8.1.140.0070.00419.45
8.1.130.0000.00718.82
8.1.120.0030.00317.26
8.1.110.0000.00817.29
8.1.100.0000.00817.43
8.1.90.0050.00217.43
8.1.80.0070.00417.43
8.1.70.0070.00017.40
8.1.60.0050.00317.45
8.1.50.0040.00417.54
8.1.40.0060.00617.43
8.1.30.0040.00417.68
8.1.20.0030.00617.52
8.1.10.0070.00017.54
8.1.00.0040.00417.47
8.0.300.0030.00618.77
8.0.290.0000.00716.75
8.0.280.0070.00018.34
8.0.270.0030.00317.13
8.0.260.0060.00016.82
8.0.250.0030.00316.83
8.0.240.0000.00716.84
8.0.230.0040.00416.85
8.0.220.0000.00716.90
8.0.210.0000.00816.81
8.0.200.0030.00316.99
8.0.190.0060.00316.99
8.0.180.0040.00416.95
8.0.170.0020.00516.95
8.0.160.0060.00316.88
8.0.150.0040.00416.75
8.0.140.0000.00716.86
8.0.130.0000.00613.34
8.0.120.0080.00016.86
8.0.110.0070.00016.74
8.0.100.0040.00416.76
8.0.90.0000.00716.80
8.0.80.0030.01316.96
8.0.70.0040.00416.99
8.0.60.0080.00016.78
8.0.50.0040.00416.76
8.0.30.0120.00816.75
8.0.20.0130.00617.40
8.0.10.0030.00316.81
8.0.00.0140.00316.76
7.4.330.0000.00415.55
7.4.320.0030.00316.38
7.4.300.0050.00316.57
7.4.290.0100.00316.51
7.4.280.0050.00316.53
7.4.270.0030.00316.46
7.4.260.0030.00313.25
7.4.250.0000.00716.42
7.4.240.0080.00016.39
7.4.230.0030.00316.52
7.4.220.0090.00916.53
7.4.210.0070.00816.51
7.4.200.0030.00316.52
7.4.160.0080.01016.60
7.4.150.0000.01717.40
7.4.140.0130.00717.86
7.4.130.0170.00816.33
7.4.120.0090.01216.38
7.3.330.0050.00013.19
7.3.320.0000.00513.27
7.3.310.0070.00016.13
7.3.300.0070.00016.25
7.3.290.0030.00316.29
7.3.280.0090.00816.23
7.3.270.0070.01017.40
7.3.260.0110.00816.31
7.3.250.0110.00816.22
7.3.240.0080.01016.28
7.1.60.0570.01732.99

preferences:
38.13 ms | 401 KiB | 5 Q