3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $foo = 123; } class Bar {} $foo = new Foo(); $serializedFoo = serialize($foo); $unserializedFoo = unserialize($serializedFoo, ['allowed_classes' => [Bar::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.0150.00316.50
8.3.50.0130.00716.39
8.3.40.0080.00818.53
8.3.30.0090.00918.34
8.3.20.0050.00320.77
8.3.10.0050.00521.81
8.3.00.0050.00319.41
8.2.180.0120.00616.38
8.2.170.0120.00322.96
8.2.160.0030.01620.35
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00020.52
8.2.120.0000.00726.35
8.2.110.0040.00722.12
8.2.100.0120.00017.72
8.2.90.0000.00819.05
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0050.00317.91
8.2.50.0060.00318.10
8.2.40.0050.00322.15
8.2.30.0040.00421.03
8.2.20.0070.00018.01
8.2.10.0040.00418.05
8.2.00.0040.00418.02
8.1.280.0110.00425.92
8.1.270.0000.00822.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.97
8.1.230.0040.00719.19
8.1.220.0000.00717.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0050.00316.88
8.1.180.0030.00618.10
8.1.170.0000.00818.53
8.1.160.0000.00719.01
8.1.150.0030.00620.52
8.1.140.0060.00319.41
8.1.130.0070.00018.76
8.1.120.0000.00717.36
8.1.110.0040.00417.29
8.1.100.0000.00817.33
8.1.90.0050.00217.43
8.1.80.0030.00617.37
8.1.70.0000.00717.35
8.1.60.0000.00817.51
8.1.50.0000.00817.48
8.1.40.0040.00817.46
8.1.30.0000.00917.45
8.1.20.0000.00817.52
8.1.10.0040.00417.53
8.1.00.0070.00017.47
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.36
8.0.270.0090.00017.27
8.0.260.0030.00316.80
8.0.250.0030.00317.02
8.0.240.0040.00416.95
8.0.230.0000.00716.92
8.0.220.0000.00616.88
8.0.210.0000.00716.79
8.0.200.0000.00716.96
8.0.190.0000.00816.91
8.0.180.0040.00416.84
8.0.170.0040.00416.91
8.0.160.0040.00416.87
8.0.150.0070.00016.72
8.0.140.0000.00816.86
8.0.130.0000.00513.36
8.0.120.0050.00316.77
8.0.110.0070.00016.79
8.0.100.0080.00016.77
8.0.90.0000.00716.93
8.0.80.0190.00316.84
8.0.70.0040.00416.95
8.0.60.0000.00716.76
8.0.50.0040.00416.71
8.0.30.0090.00616.93
8.0.20.0130.00917.40
8.0.10.0030.00417.00
8.0.00.0130.00316.68
7.4.330.0000.00515.55
7.4.320.0060.00016.46
7.4.300.0060.00016.53
7.4.290.0030.00716.53
7.4.280.0040.00416.46
7.4.270.0040.00416.34
7.4.260.0030.00313.20
7.4.250.0050.00216.55
7.4.240.0040.00416.58
7.4.230.0070.00016.56
7.4.220.0160.00316.42
7.4.210.0050.01116.46
7.4.200.0000.00716.63
7.4.160.0100.00616.35
7.4.150.0080.01117.40
7.4.140.0100.01117.86
7.4.130.0120.00916.45
7.4.120.0050.01616.46
7.3.330.0000.00513.20
7.3.320.0000.00513.12
7.3.310.0000.00716.23
7.3.300.0060.00016.20
7.3.290.0070.00016.10
7.3.280.0100.01016.16
7.3.270.0180.01217.40
7.3.260.0090.01216.32
7.3.250.0070.01116.23
7.3.240.0110.00916.30
7.1.60.2230.01032.90

preferences:
42.44 ms | 404 KiB | 6 Q