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; } $class = unserialize(base64_decode($serialized)); foreach ($class as $k => $v) { var_dump($k); }

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.0100.01018.18
8.3.50.0160.00321.00
8.3.40.0070.00718.46
8.3.30.0110.00318.93
8.3.20.0030.00520.26
8.3.10.0030.00523.70
8.3.00.0040.00419.13
8.2.180.0100.01016.38
8.2.170.0070.00722.96
8.2.160.0070.00720.60
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00522.22
8.2.110.0060.00320.52
8.2.100.0080.00417.72
8.2.90.0000.00819.08
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00417.90
8.2.50.0050.00518.07
8.2.40.0000.00919.95
8.2.30.0040.00417.94
8.2.20.0080.00017.55
8.2.10.0040.00417.99
8.2.00.0030.00617.61
8.1.280.0100.00325.92
8.1.270.0120.00321.81
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0030.00622.25
8.1.230.0040.00724.05
8.1.220.0050.00317.77
8.1.210.0080.00018.77
8.1.200.0060.00317.10
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0080.00018.50
8.1.160.0040.00422.00
8.1.150.0040.00418.88
8.1.140.0000.00717.45
8.1.130.0000.00817.67
8.1.120.0040.00417.45
8.1.110.0050.00217.46
8.1.100.0000.00717.45
8.1.90.0040.00717.46
8.1.80.0040.00417.48
8.1.70.0000.00817.33
8.1.60.0000.00817.54
8.1.50.0030.00517.51
8.1.40.0030.00517.52
8.1.30.0030.00517.49
8.1.20.0080.00017.67
8.1.10.0000.00717.34
8.1.00.0040.00417.34
8.0.300.0070.00018.77
8.0.290.0030.00616.88
8.0.280.0000.00718.43
8.0.270.0000.00817.17
8.0.260.0060.00017.25
8.0.250.0040.00417.05
8.0.240.0000.00717.00
8.0.230.0000.00816.96
8.0.220.0070.00016.90
8.0.210.0050.00316.80
8.0.200.0030.00316.90
8.0.190.0030.00716.92
8.0.180.0050.00216.97
8.0.170.0040.00416.94
8.0.160.0040.00416.83
8.0.150.0040.00416.89
8.0.140.0030.00316.81
8.0.130.0030.00613.39
8.0.120.0080.00016.98
8.0.110.0040.00417.00
8.0.100.0070.00016.77
8.0.90.0040.00416.78
8.0.80.0110.00616.95
8.0.70.0070.00016.82
8.0.60.0000.00716.98
8.0.50.0020.00517.02
8.0.30.0140.00717.22
8.0.20.0130.01017.40
8.0.10.0070.00017.06
8.0.00.0110.00616.75
7.4.330.0060.00015.20
7.4.320.0030.00316.52
7.4.300.0000.00816.57
7.4.290.0030.00316.58
7.4.280.0070.00016.52
7.4.270.0000.00716.61
7.4.260.0030.00316.48
7.4.250.0040.00416.36
7.4.240.0040.00416.57
7.4.230.0030.00316.66
7.4.220.0070.01416.46
7.4.210.0090.00616.61
7.4.200.0070.00016.43
7.4.160.0170.00016.65
7.4.150.0070.01117.40
7.4.140.0100.00817.86
7.4.130.0120.00616.38
7.4.120.0110.00616.38
7.4.110.0110.00516.50
7.4.100.0090.00916.49
7.4.90.0090.00916.36
7.4.80.0130.00619.39
7.4.70.0130.00716.49
7.4.60.0110.00616.57
7.4.50.0030.00616.33
7.4.40.0130.00416.48
7.4.30.0110.00716.64
7.4.00.0060.00914.98
7.3.330.0030.00313.36
7.3.320.0000.00613.27
7.3.310.0050.00216.17
7.3.300.0030.00316.25
7.3.290.0110.00516.31
7.3.280.0100.00516.31
7.3.270.0140.00417.40
7.3.260.0130.00616.29
7.3.250.0090.00916.53
7.3.240.0140.01016.46
7.3.230.0080.00816.59
7.3.210.0060.01016.59
7.3.200.0090.00919.39
7.3.190.0030.01616.47
7.3.180.0140.00316.26
7.3.170.0160.00716.68
7.3.160.0100.01316.54
7.3.120.0140.00314.60
7.3.110.0080.00814.88
7.3.100.0090.00614.76
7.3.90.0060.00914.60
7.3.80.0140.00314.81
7.3.70.0040.00414.74
7.3.60.0030.00914.70
7.3.50.0060.00914.87
7.3.40.0090.00314.82
7.3.30.0070.01014.89
7.3.20.0160.00016.32
7.3.10.0070.00516.46
7.3.00.0040.01016.50
7.2.330.0100.00716.77
7.2.320.0040.01216.53
7.2.310.0070.01116.70
7.2.300.0030.01416.51
7.2.290.0070.01416.45
7.2.240.0000.01714.71
7.2.230.0100.00714.75
7.2.220.0100.00714.88
7.2.210.0090.00615.23
7.2.200.0000.00914.85
7.2.190.0060.00914.73
7.2.180.0060.00815.09
7.2.170.0030.01015.07
7.2.160.0070.01114.93
7.2.150.0000.01016.64
7.2.140.0050.00816.70
7.2.130.0070.00616.92
7.2.120.0100.00316.85
7.2.110.0050.01016.83
7.2.100.0110.00816.92
7.2.90.0030.01116.56
7.2.80.0060.00816.85
7.2.70.0070.00716.78
7.2.60.0040.01116.79
7.2.50.0020.01116.61
7.2.40.0070.00916.75
7.2.30.0090.00416.62
7.2.20.0080.00616.66
7.2.10.0020.01116.89
7.2.00.0050.00817.02
7.1.330.0000.01715.86
7.1.320.0070.01115.56
7.1.310.0060.00915.52
7.1.300.0150.00015.80
7.1.290.0030.01015.72
7.1.280.0080.00415.84
7.1.270.0100.00015.63
7.1.260.0070.00315.42
7.1.250.0110.00115.63
7.1.200.0140.00715.30
7.1.70.0000.00817.21
7.1.60.0120.01219.11
7.1.50.0000.02416.90
7.1.00.0100.07022.45
7.0.200.0060.00316.80
7.0.140.0030.07322.07
7.0.110.0170.07719.92
7.0.100.0100.04720.04
7.0.90.0030.07719.89
7.0.80.0100.08319.91
7.0.70.0170.06719.96
7.0.60.0070.05019.93
7.0.50.0030.08020.40
7.0.40.0100.07320.04
7.0.30.0000.09320.28
7.0.20.0130.06320.12
7.0.10.0100.08020.23
7.0.00.0130.08320.16
5.6.280.0070.07021.15
5.6.250.0170.07320.68
5.6.240.0130.07320.67
5.6.230.0170.07320.68
5.6.220.0070.04320.68
5.6.210.0100.08020.80
5.6.200.0100.07721.14
5.6.190.0100.08021.07
5.6.180.0030.08321.19
5.6.170.0070.08321.22
5.6.160.0270.06321.08
5.6.150.0030.08021.14
5.6.140.0200.06721.07
5.6.130.0130.06721.07
5.6.120.0130.04321.26
5.6.110.0230.07020.94
5.6.100.0130.08321.18
5.6.90.0100.08020.92
5.6.80.0130.07020.32
5.6.70.0070.07020.45
5.6.60.0130.07020.39
5.6.50.0070.07320.33
5.6.40.0000.04320.50
5.6.30.0100.06720.61
5.6.20.0000.04720.54
5.6.10.0000.05020.28
5.6.00.0000.06020.43
5.5.380.0070.08320.35
5.5.370.0030.05020.57
5.5.360.0130.07720.56
5.5.350.0100.07720.39
5.5.340.0070.09020.97
5.5.330.0130.08020.80
5.5.320.0130.07720.70
5.5.310.0030.07020.95
5.5.300.0100.07720.79
5.5.290.0170.07320.95
5.5.280.0030.05020.95
5.5.270.0170.08320.73
5.5.260.0100.08020.93
5.5.250.0130.07320.84
5.5.240.0130.04320.42
5.5.230.0030.08320.26
5.5.220.0100.05020.32
5.5.210.0070.04020.25
5.5.200.0100.07720.34
5.5.190.0100.08320.29
5.5.180.0100.05320.23
5.5.160.0070.03720.36
5.5.150.0100.03720.38
5.5.140.0030.04020.05
5.5.130.0030.04020.30
5.5.120.0030.03720.08
5.5.110.0100.03020.09
5.5.100.0100.03020.08
5.5.90.0100.03020.04
5.5.80.0100.03320.07
5.5.70.0030.04020.07
5.5.60.0000.04020.01
5.5.50.0000.04020.24
5.5.40.0130.06320.03
5.5.30.0030.07320.12
5.5.20.0130.05020.00
5.5.10.0030.08020.11
5.5.00.0070.03720.11
5.4.450.0170.06719.32
5.4.440.0100.07319.46
5.4.430.0130.07319.31
5.4.420.0070.04019.56
5.4.410.0030.05019.34
5.4.400.0070.07719.03
5.4.390.0100.07319.23
5.4.380.0030.05018.99
5.4.370.0100.07019.09
5.4.360.0100.07019.02
5.4.350.0070.06719.03
5.4.340.0030.08019.18
5.4.320.0130.02718.97
5.4.310.0030.04719.23
5.4.300.0000.04019.01
5.4.290.0170.02719.01
5.4.280.0030.03718.98
5.4.270.0030.04718.99
5.4.260.0070.04719.09
5.4.250.0000.04019.00
5.4.240.0070.03319.17
5.4.230.0030.05019.27
5.4.220.0030.05019.10
5.4.210.0030.04719.16
5.4.200.0130.05019.23
5.4.190.0030.04018.98
5.4.180.0000.06319.30
5.4.170.0070.03319.30
5.4.160.0000.04019.12
5.4.150.0070.03319.22
5.4.140.0030.03716.35
5.4.130.0070.04716.52
5.4.120.0000.04716.52
5.4.110.0070.04016.41
5.4.100.0000.03716.55
5.4.90.0000.04716.48
5.4.80.0000.03716.53
5.4.70.0070.03016.45
5.4.60.0000.04016.54
5.4.50.0130.03316.23
5.4.40.0100.04716.58
5.4.30.0030.04316.62
5.4.20.0000.03716.47
5.4.10.0030.03716.33
5.4.00.0030.03715.79
5.3.290.0000.04014.66
5.3.280.0070.03014.73
5.3.270.0000.06014.58
5.3.260.0030.04014.68
5.3.250.0070.03714.73
5.3.240.0030.04014.55
5.3.230.0000.04014.72
5.3.220.0030.03714.57
5.3.210.0100.03014.52
5.3.200.0170.05014.69
5.3.190.0030.04714.65
5.3.180.0000.05714.53
5.3.170.0070.04014.57
5.3.160.0100.03014.68
5.3.150.0070.03314.64
5.3.140.0000.08314.58
5.3.130.0070.03314.57
5.3.120.0030.03714.57
5.3.110.0070.03714.56
5.3.100.0030.03714.16
5.3.90.0070.03714.05
5.3.80.0030.03714.04
5.3.70.0030.03714.05
5.3.60.0000.03714.14
5.3.50.0100.04014.03
5.3.40.0000.04013.96
5.3.30.0070.03014.04
5.3.20.0070.06313.75
5.3.10.0030.06313.61
5.3.00.0070.07013.73
5.2.170.0030.03011.17
5.2.160.0030.02711.23
5.2.150.0070.02711.15
5.2.140.0030.02711.14
5.2.130.0000.03311.23
5.2.120.0070.06011.18
5.2.110.0070.05311.11
5.2.100.0100.04711.07
5.2.90.0030.06710.95
5.2.80.0100.05011.06
5.2.70.0100.05711.15
5.2.60.0070.07711.18
5.2.50.0000.06711.14
5.2.40.0070.05310.99
5.2.30.0030.03710.95
5.2.20.0070.06010.93
5.2.10.0070.06010.93
5.2.00.0030.06310.94
5.1.60.0000.0379.99
5.1.50.0000.0579.95
5.1.40.0070.0509.95
5.1.30.0030.06010.34
5.1.20.0070.05010.34
5.1.10.0030.05010.04
5.1.00.0100.05310.06
5.0.50.0070.0239.43
5.0.40.0100.0279.43
5.0.30.0000.0609.43
5.0.20.0070.0439.43
5.0.10.0100.0409.43
5.0.00.0100.0579.43
4.4.90.0030.0339.43
4.4.80.0070.0309.43
4.4.70.0030.0339.43
4.4.60.0070.0309.43
4.4.50.0000.0379.43
4.4.40.0030.0539.43
4.4.30.0000.0409.43
4.4.20.0030.0279.43
4.4.10.0000.0379.43
4.4.00.0070.0509.43
4.3.110.0000.0379.43
4.3.100.0000.0379.43
4.3.90.0000.0379.43
4.3.80.0000.0509.43
4.3.70.0000.0379.43
4.3.60.0000.0339.43
4.3.50.0000.0309.43
4.3.40.0070.0379.43
4.3.30.0030.0279.43
4.3.20.0000.0379.43
4.3.10.0000.0379.43
4.3.00.0000.0339.43

preferences:
39 ms | 401 KiB | 5 Q