3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { protected $bar; } class bar extends foo { } $test = new bar(); $meh = serialize($test); $meh = unserialize($meh, ['allowed_classes' => 'foo']);

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.0090.00916.63
8.3.50.0150.00921.09
8.3.40.0130.00318.77
8.3.30.0140.00018.68
8.3.20.0040.00420.07
8.3.10.0000.00823.53
8.3.00.0000.00819.79
8.2.180.0000.01918.30
8.2.170.0170.00322.96
8.2.160.0070.00720.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00417.49
8.2.110.0000.01022.13
8.2.100.0060.00619.54
8.2.90.0000.00719.08
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0080.00017.80
8.2.50.0080.00018.07
8.2.40.0050.00321.07
8.2.30.0040.00420.61
8.2.20.0000.00917.55
8.2.10.0040.00417.98
8.2.00.0030.00617.98
8.1.280.0070.00725.92
8.1.270.0000.00823.97
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0040.00420.96
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.35
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0000.00820.28
8.1.160.0040.00421.95
8.1.150.0040.00418.73
8.1.140.0040.00419.55
8.1.130.0000.00717.54
8.1.120.0000.00717.42
8.1.110.0000.00917.38
8.1.100.0070.00017.39
8.1.90.0000.00817.32
8.1.80.0000.00717.38
8.1.70.0070.00017.43
8.1.60.0040.00417.53
8.1.50.0070.00017.59
8.1.40.0100.00017.51
8.1.30.0000.00817.67
8.1.20.0000.00717.65
8.1.10.0040.00417.58
8.1.00.0030.00617.51
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0000.00718.48
8.0.270.0070.00017.25
8.0.260.0050.00317.11
8.0.250.0040.00416.91
8.0.240.0000.00816.96
8.0.230.0070.00016.96
8.0.220.0000.00716.72
8.0.210.0030.00316.89
8.0.200.0000.00716.84
8.0.190.0000.00816.82
8.0.180.0000.00816.91
8.0.170.0000.00816.80
8.0.160.0030.00516.85
8.0.150.0040.00416.89
8.0.140.0030.00316.84
8.0.130.0030.00313.39
8.0.120.0040.00416.85
8.0.110.0040.00416.89
8.0.100.0000.00716.76
8.0.90.0000.00816.96
8.0.80.0180.00416.94
8.0.70.0000.00816.95
8.0.60.0040.00416.71
8.0.50.0070.00016.73
8.0.30.0120.00417.12
8.0.20.0090.01217.40
8.0.10.0080.00017.05
8.0.00.0110.00916.80
7.4.330.0050.00015.08
7.4.320.0030.00316.39
7.4.300.0060.00016.53
7.4.290.0030.00516.44
7.4.280.0030.00516.53
7.4.270.0000.00616.52
7.4.260.0070.00016.44
7.4.250.0000.00716.48
7.4.240.0020.00616.41
7.4.230.0030.00316.50
7.4.220.0040.01616.53
7.4.210.0030.01216.50
7.4.200.0030.00316.47
7.4.160.0060.00916.54
7.4.150.0130.00617.40
7.4.140.0080.01117.86
7.4.130.0080.01516.38
7.4.120.0120.00716.50
7.4.110.0090.00916.68
7.4.100.0110.00616.44
7.4.90.0120.00616.40
7.4.80.0070.01019.39
7.4.70.0090.00616.41
7.4.60.0150.00816.45
7.4.50.0000.00516.48
7.4.40.0040.01416.52
7.4.30.0120.00916.57
7.4.00.0040.01115.06
7.3.330.0030.00313.09
7.3.320.0060.00013.09
7.3.310.0000.00616.26
7.3.300.0060.00016.10
7.3.290.0080.00616.23
7.3.280.0120.00916.18
7.3.270.0200.00717.40
7.3.260.0060.01316.64
7.3.250.0080.01016.29
7.3.240.0130.00816.24
7.3.230.0070.01016.39
7.3.210.0130.00316.26
7.3.200.0110.00516.26
7.3.190.0000.01516.34
7.3.180.0100.00716.28
7.3.170.0040.01316.27
7.3.160.0060.01016.20
7.3.10.0040.00816.10
7.3.00.0030.01216.03
7.2.330.0180.00016.64
7.2.320.0100.00716.66
7.2.310.0120.00916.52
7.2.300.0080.00816.62
7.2.290.0170.00016.64
7.2.130.0070.01016.57
7.2.120.0110.00016.52
7.2.110.0130.00016.24
7.2.100.0060.01016.53
7.2.90.0000.00916.43
7.2.80.0100.01016.43
7.2.70.0000.01216.41
7.2.60.0050.00816.58
7.2.50.0080.00316.63
7.2.40.0070.00716.23
7.2.30.0080.00416.51
7.2.20.0090.00616.63
7.2.10.0130.00016.62
7.2.00.0040.01217.89
7.1.250.0090.00615.17
7.1.200.0000.01415.88
7.1.100.0000.00917.83
7.1.70.0100.01017.08
7.1.60.0130.01019.50
7.1.50.0150.00616.83
7.1.00.0100.07022.33
7.0.200.0000.00916.70
7.0.60.0100.07019.91
7.0.50.0070.04017.73
7.0.40.0170.07720.24
7.0.30.0500.06320.23
7.0.20.0430.06720.17
7.0.10.0330.08020.35
7.0.00.0100.06020.23
5.6.280.0000.03720.91
5.6.210.0070.08020.44
5.6.200.0030.05718.20
5.6.190.0070.08320.51
5.6.180.0230.07720.45
5.6.170.0330.05320.45
5.6.160.0030.08720.54
5.6.150.0000.05718.18
5.6.140.0130.07018.28
5.6.130.0070.07718.12
5.6.120.0030.04721.09
5.6.110.0030.06721.13
5.6.100.0130.08020.98
5.6.90.0130.07320.93
5.6.80.0030.08020.41
5.6.70.0230.05020.37
5.5.350.0230.07320.33
5.5.340.0000.07718.10
5.5.330.0070.05720.35
5.5.320.0230.04020.38
5.5.310.0270.06320.37
5.5.300.0000.04018.04
5.5.290.0170.07317.98
5.5.280.0030.04020.98
5.5.270.0100.07020.72
5.5.260.0000.04320.76
5.5.250.0100.08320.63
5.5.240.0100.05720.26
5.4.450.0200.05319.62
5.4.440.0130.06319.47
5.4.430.0500.05719.20
5.4.420.0630.06719.33
5.4.410.0130.05319.57
5.4.400.0200.05019.11
5.4.390.0600.06319.30
5.4.380.0200.05719.15
5.4.370.0170.04719.16
5.4.360.0570.04318.98
5.4.350.0630.05319.00
5.4.340.0500.06319.15
5.4.320.0270.06719.25
5.4.310.0230.06318.84
5.4.300.0230.05019.30
5.4.290.0200.05019.27
5.4.280.0270.04019.36
5.4.270.0200.06719.11
5.4.260.0170.07019.22
5.4.250.0170.07018.96
5.4.240.0030.06319.29
5.4.230.0070.06019.29
5.4.220.0130.05319.25
5.4.210.0070.06019.27
5.4.200.0570.06719.14
5.4.190.0470.06719.20
5.4.180.0600.05318.86
5.4.170.0070.06018.99
5.4.160.0230.04319.26
5.4.150.0470.05719.33
5.4.140.0870.06016.52
5.4.130.0770.06016.45
5.4.120.0830.06016.52
5.4.110.0400.04716.50
5.4.100.0070.05316.45
5.4.90.0000.05716.31
5.4.80.0270.05016.46
5.4.70.0500.05716.31
5.4.60.0070.05016.41
5.4.50.0070.05016.37
5.4.40.0170.04316.25
5.4.30.0470.04716.24
5.4.20.0500.04716.48
5.4.10.0500.04716.50
5.4.00.0700.04315.91

preferences:
63.67 ms | 401 KiB | 5 Q