3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** *class Foo *{ * protected $bar = null; * * public function __construct($bar = null) * { * $this->bar = $bar; * } *} * * The class above represents the serialized, base64_encoded string below. */ $serialized = 'TzozOiJGb28iOjE6e3M6NjoiACoAYmFyIjtzOjM6ImJheiI7fQ=='; class Foo { public $bar = null; public function getBar() { return $this->bar; } } var_dump(addslashes(base64_decode($serialized))); $class = unserialize(base64_decode($serialized)); var_dump($class); var_dump($class->getBar());

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.4.120.0060.00320.80
8.4.110.0140.00722.51
8.4.100.0120.00817.73
8.4.90.0120.01020.52
8.4.80.0080.01019.07
8.4.70.0170.00420.70
8.4.60.0080.01318.82
8.4.50.0170.00317.45
8.4.40.0130.00720.42
8.4.30.0110.01117.71
8.4.20.0100.01017.56
8.4.10.0090.00017.36
8.3.250.0120.00718.85
8.3.240.0030.00616.21
8.3.230.0100.00916.46
8.3.220.0090.01018.95
8.3.210.0120.00616.52
8.3.200.0060.00316.38
8.3.190.0090.00516.41
8.3.180.0040.00416.64
8.3.170.0070.00316.55
8.3.160.0110.00716.38
8.3.150.0090.00920.45
8.3.140.0140.00418.93
8.3.130.0080.00018.59
8.3.120.0000.00818.82
8.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0030.00526.77
8.3.80.0080.00316.13
8.3.70.0090.00616.58
8.3.60.0140.00718.36
8.3.50.0120.01022.00
8.3.40.0110.00418.81
8.3.30.0160.00018.71
8.3.20.0070.00020.30
8.3.10.0030.00521.80
8.3.00.0080.00018.98
8.2.290.0140.00516.48
8.2.280.0030.00618.41
8.2.270.0060.00317.02
8.2.260.0040.00416.48
8.2.250.0040.00418.36
8.2.240.0080.00018.94
8.2.230.0110.00422.58
8.2.220.0030.00637.54
8.2.210.0120.00626.77
8.2.200.0090.00016.50
8.2.190.0120.00618.43
8.2.180.0140.00316.75
8.2.170.0100.00318.90
8.2.160.0000.01422.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0090.00019.15
8.2.110.0060.00319.16
8.2.100.0040.00817.87
8.2.90.0000.00819.14
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0030.00617.93
8.2.50.0050.00318.10
8.2.40.0050.00322.17
8.2.30.0060.00319.25
8.2.20.0040.00417.60
8.2.10.0040.00418.14
8.2.00.0000.00717.93
8.1.330.0050.00316.03
8.1.320.0110.00816.24
8.1.310.0110.00316.90
8.1.300.0060.00320.23
8.1.290.0000.00830.84
8.1.280.0040.01825.92
8.1.270.0000.00722.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00320.84
8.1.230.0070.00321.04
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0000.00917.11
8.1.190.0030.00517.11
8.1.180.0060.00318.10
8.1.170.0000.00718.71
8.1.160.0030.00322.20
8.1.150.0040.00418.83
8.1.140.0040.00419.39
8.1.130.0030.00317.44
8.1.120.0080.00317.37
8.1.110.0090.00017.28
8.1.100.0000.00717.40
8.1.90.0050.00317.43
8.1.80.0000.00717.28
8.1.70.0040.00417.45
8.1.60.0040.00417.54
8.1.50.0000.00817.40
8.1.40.0060.00317.50
8.1.30.0040.00417.66
8.1.20.0000.00817.50
8.1.10.0000.00817.50
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0040.00418.38
8.0.270.0000.00717.20
8.0.260.0070.00016.73
8.0.250.0060.00016.90
8.0.240.0030.00316.93
8.0.230.0040.00416.98
8.0.220.0030.00316.83
8.0.210.0030.00516.84
8.0.200.0030.00316.99
8.0.190.0070.00016.85
8.0.180.0000.00716.86
8.0.170.0080.00016.95
8.0.160.0000.00716.89
8.0.150.0000.00816.69
8.0.140.0060.00316.89
8.0.130.0000.00613.28
8.0.120.0000.00816.77
8.0.110.0060.00316.82
8.0.100.0080.00016.86
8.0.90.0030.00516.84
8.0.80.0120.00416.82
8.0.70.0030.00516.96
8.0.60.0040.00416.93
8.0.50.0000.00716.92
8.0.30.0080.01016.99
8.0.20.0150.00817.40
8.0.10.0000.00817.00
8.0.00.0150.00416.52
7.4.330.0030.00315.08
7.4.320.0060.00016.36
7.4.300.0070.00016.41
7.4.290.0070.00016.52
7.4.280.0000.00716.60
7.4.270.0030.00716.51
7.4.260.0040.00416.53
7.4.250.0070.00016.46
7.4.240.0050.00216.48
7.4.230.0070.00016.56
7.4.220.0090.00616.54
7.4.210.0090.00616.54
7.4.200.0040.00416.50
7.4.160.0090.00616.45
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0080.01216.49
7.4.120.0100.00716.51
7.4.110.0000.01716.40
7.4.100.0070.01716.32
7.4.90.0030.01416.48
7.4.80.0080.01519.39
7.4.70.0110.00516.44
7.4.60.0060.01116.54
7.4.50.0110.00716.35
7.4.40.0040.01416.43
7.4.30.0050.01116.17
7.4.00.0080.00314.71
7.3.330.0030.00513.23
7.3.320.0000.00613.11
7.3.310.0070.00016.35
7.3.300.0000.00616.20
7.3.290.0030.00316.19
7.3.280.0070.00916.22
7.3.270.0070.01017.40
7.3.260.0130.00816.24
7.3.250.0110.00816.30
7.3.240.0070.01016.24
7.3.230.0140.00316.50
7.3.210.0160.02916.11
7.3.200.0200.00319.39
7.3.190.0030.01216.30
7.3.180.0030.01616.30
7.3.170.0060.01116.55
7.3.160.0030.01316.17
7.2.330.0060.01116.31
7.2.320.0100.00716.34
7.2.310.0100.00716.64
7.2.300.0160.00216.76
7.2.290.0180.02116.41
7.2.60.0030.00916.78
7.1.200.0070.00715.62
7.1.70.0030.00317.21
7.1.60.0070.00719.87
7.1.00.0030.07722.44
7.0.200.0070.01014.55
7.0.80.0130.05320.01
7.0.70.0670.05720.04
7.0.60.0670.06319.98
7.0.50.0700.05720.32
7.0.40.0800.05020.36
7.0.30.0670.06020.32
7.0.20.0970.07320.39
7.0.10.0730.05720.28
7.0.00.0730.05720.36
5.6.280.0000.07721.13
5.6.220.0700.04320.64
5.6.210.0670.05320.69
5.6.200.0530.06321.02
5.6.190.0500.06721.03
5.6.180.0630.06321.04
5.6.170.0670.06321.09
5.6.160.0600.05321.15
5.6.150.0570.06021.05
5.6.140.0730.04321.14
5.6.130.0570.06021.01
5.6.120.0400.06321.13
5.6.110.0700.05720.97
5.6.100.0830.05021.06
5.6.90.0700.06021.01
5.6.80.0530.05720.51
5.6.70.0530.05720.39
5.6.60.0530.07320.40
5.6.50.0600.06020.43
5.6.40.0900.05320.37
5.6.30.0600.06320.47
5.6.20.0570.06720.44
5.6.10.0670.06020.43
5.6.00.0700.05720.46
5.5.360.0670.05320.43
5.5.350.0670.05720.44
5.5.340.0630.05720.94
5.5.330.0600.05020.96
5.5.320.0470.06320.68
5.5.310.0630.06720.83
5.5.300.0670.05720.87
5.5.290.0700.06020.88
5.5.280.0230.05720.81
5.5.270.0600.06720.82
5.5.260.0130.05720.80
5.5.250.0130.06320.65
5.5.240.0500.06020.35
5.5.230.0670.05320.23
5.5.220.0600.06020.14
5.5.210.0700.05020.20
5.5.200.0670.05720.27
5.5.190.0600.06020.31
5.5.180.0730.04320.26
5.5.160.0900.06020.23
5.5.150.0600.05720.02
5.5.140.0570.06020.14
5.5.130.0830.07320.18
5.5.120.0700.06020.28
5.5.110.0670.05720.05
5.5.100.0600.06720.08
5.5.90.0530.06020.20
5.5.80.0630.06320.07
5.5.70.0600.06720.08
5.5.60.0730.05720.16
5.5.50.0530.06320.11
5.5.40.0600.05320.09
5.5.30.0500.06320.16
5.5.20.0670.05719.98
5.5.10.0700.05720.05
5.5.00.0600.06020.16

preferences:
29.93 ms | 403 KiB | 5 Q