3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $biz = 'bizValue'; } $foo = new Foo(); $arrayFoo = (array) $foo; $out = json_encode($arrayFoo); var_dump($out); $out = preg_replace('/\\\u0000[*a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*\\\u0000/', '', $out); $newArray = json_decode($out, true); var_dump($newArray);

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.00616.63
8.3.50.0080.01422.13
8.3.40.0070.00718.84
8.3.30.0110.00418.80
8.3.20.0040.00420.41
8.3.10.0040.00423.66
8.3.00.0070.00020.87
8.2.180.0060.00918.61
8.2.170.0090.00622.96
8.2.160.0040.01120.22
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00519.36
8.2.110.0030.00721.03
8.2.100.0070.00717.96
8.2.90.0040.00419.02
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0060.00317.92
8.2.50.0040.00418.10
8.2.40.0030.00620.41
8.2.30.0000.00819.12
8.2.20.0000.00817.64
8.2.10.0000.00718.01
8.2.00.0050.00317.81
8.1.280.0030.01225.92
8.1.270.0030.00623.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0060.00620.46
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0000.01117.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0040.00418.53
8.1.160.0040.00418.84
8.1.150.0050.00220.02
8.1.140.0040.00417.44
8.1.130.0000.00817.84
8.1.120.0040.00417.45
8.1.110.0040.00417.39
8.1.100.0070.00017.55
8.1.90.0050.00217.51
8.1.80.0070.00017.54
8.1.70.0050.00317.55
8.1.60.0000.00817.77
8.1.50.0030.00617.58
8.1.40.0030.00517.55
8.1.30.0000.00917.62
8.1.20.0020.00517.70
8.1.10.0040.00417.63
8.1.00.0040.00417.46
8.0.300.0000.00718.77
8.0.290.0050.00516.75
8.0.280.0030.00318.41
8.0.270.0030.00317.26
8.0.260.0000.00617.14
8.0.250.0000.00716.94
8.0.240.0050.00317.01
8.0.230.0000.00816.92
8.0.220.0050.00216.86
8.0.210.0030.00316.98
8.0.200.0060.00317.07
8.0.190.0000.00716.99
8.0.180.0040.00416.92
8.0.170.0000.00817.03
8.0.160.0040.00416.99
8.0.150.0040.00416.87
8.0.140.0000.00716.90
8.0.130.0030.00313.39
8.0.120.0030.00516.95
8.0.110.0070.00017.01
8.0.100.0000.00716.76
8.0.90.0040.00417.00
8.0.80.0100.00717.00
8.0.70.0040.00416.96
8.0.60.0000.00816.86
8.0.50.0040.00416.91
8.0.30.0080.01317.07
8.0.20.0110.00817.40
8.0.10.0040.00416.98
8.0.00.0120.00717.08
7.4.330.0000.00515.03
7.4.320.0060.00016.81
7.4.300.0000.00616.83
7.4.290.0000.00816.69
7.4.280.0070.00016.70
7.4.270.0020.00516.70
7.4.260.0000.00816.61
7.4.250.0070.00016.53
7.4.240.0030.00516.80
7.4.230.0030.00516.60
7.4.220.0050.01416.76
7.4.210.0050.01116.81
7.4.200.0030.00316.83
7.4.160.0120.00616.45
7.4.150.0130.01017.40
7.4.140.0120.00717.86
7.4.130.0150.00316.57
7.4.120.0060.01216.62
7.4.110.0060.01216.54
7.4.100.0130.00316.48
7.4.90.0120.00816.80
7.4.80.0070.01019.39
7.4.70.0000.01616.61
7.4.60.0150.00316.58
7.4.50.0040.00016.75
7.4.40.0080.00816.51
7.4.30.0120.00416.43
7.4.00.0090.00915.04
7.3.330.0030.00313.22
7.3.320.0000.00613.37
7.3.310.0060.00016.27
7.3.300.0050.00316.39
7.3.290.0040.01016.32
7.3.280.0110.00616.37
7.3.270.0060.01117.40
7.3.260.0100.01016.75
7.3.250.0120.00916.52
7.3.240.0110.00616.60
7.3.230.0240.00116.40
7.3.210.0100.00716.52
7.3.200.0090.00919.39
7.3.190.0090.00916.52
7.3.180.0060.00916.44
7.3.170.0150.00616.56
7.3.160.0090.00916.54
7.3.120.0030.01014.57
7.3.10.0100.00616.77
7.3.00.0060.00316.36
7.2.330.0110.00616.73
7.2.320.0120.00416.50
7.2.310.0060.01316.62
7.2.300.0000.01716.70
7.2.290.0070.01416.48
7.2.130.0060.00917.03
7.2.120.0070.00317.00
7.2.110.0060.00916.99
7.2.100.0100.00416.86
7.2.90.0070.00217.17
7.2.80.0090.00616.96
7.2.70.0060.00916.97
7.2.60.0080.00516.66
7.2.50.0040.01417.17
7.2.40.0030.01017.05
7.2.30.0040.01117.02
7.2.20.0060.00917.01
7.2.10.0030.01217.05
7.2.00.0080.00418.21
7.1.250.0040.01015.57
7.1.100.0100.00718.16
7.1.70.0000.00717.31
7.1.60.0070.01719.70
7.1.50.0180.01834.99
7.1.00.0070.07322.30
7.0.200.0000.00916.89
7.0.140.0000.07021.93
7.0.90.0130.05020.02
7.0.80.0100.03719.92
7.0.70.0100.03319.89
7.0.60.0130.06719.97
7.0.50.0070.04020.32
7.0.40.0000.04720.03
7.0.30.0030.04020.07
7.0.20.0030.04020.09
7.0.10.0070.04319.99
7.0.00.0000.05020.13
5.6.280.0000.07720.76
5.6.240.0130.04020.59
5.6.230.0000.04720.59
5.6.220.0130.03320.68
5.6.210.0070.06020.60
5.6.200.0030.04021.04
5.6.190.0030.05320.93
5.6.180.0000.04321.06
5.6.170.0070.04021.11
5.6.160.0030.04321.10
5.6.150.0070.04020.94
5.6.140.0070.04021.00
5.6.130.0030.04321.04
5.6.120.0030.04321.17
5.6.110.0030.04320.95
5.6.100.0030.04721.04
5.6.90.0000.06321.03
5.6.80.0070.06320.50
5.6.70.0070.03720.39
5.6.60.0070.05020.30
5.6.50.0070.03720.32
5.6.40.0030.05320.46
5.6.30.0000.05320.50
5.6.20.0130.07720.39
5.6.10.0100.07020.36
5.6.00.0030.06020.52
5.5.380.0130.07320.42
5.5.370.0100.03320.42
5.5.360.0030.04020.40
5.5.350.0030.04020.34
5.5.340.0030.04320.75
5.5.330.0070.04020.86
5.5.320.0000.04320.88
5.5.310.0030.08020.79
5.5.300.0030.04320.91
5.5.290.0030.04720.86
5.5.280.0070.04020.91
5.5.270.0030.04320.78
5.5.260.0030.04320.82
5.5.250.0070.05020.63
5.5.240.0070.03320.14
5.5.230.0030.03720.28
5.5.220.0030.05720.20
5.5.210.0030.06320.02
5.5.200.0030.04020.28
5.5.190.0070.07020.18
5.5.180.0130.07020.23
5.5.160.0100.04720.15
5.5.150.0030.07320.12
5.5.140.0070.06020.10
5.5.130.0070.07320.23
5.5.120.0130.07720.26
5.5.110.0100.08020.14
5.5.100.0100.07719.94
5.5.90.0100.07320.08
5.5.80.0100.06020.14
5.5.70.0100.08020.00
5.5.60.0070.03720.15
5.5.50.0070.03720.08
5.5.40.0030.07719.99
5.5.30.0030.08320.07
5.5.20.0030.04720.14
5.5.10.0030.08319.97
5.5.00.0100.07320.04
5.4.450.0030.07319.47
5.4.440.0070.03719.42
5.4.430.0030.04319.27
5.4.420.0100.03319.41
5.4.410.0070.05719.10
5.4.400.0070.04019.03
5.4.390.0000.03719.04
5.4.380.0100.03719.09
5.4.370.0000.04019.12
5.4.360.0000.06319.03
5.4.350.0100.07319.24
5.4.340.0070.06719.16
5.4.320.0000.08319.05
5.4.310.0170.06319.04
5.4.300.0070.07719.04
5.4.290.0230.05319.02
5.4.280.0030.08318.87
5.4.270.0000.08718.94
5.4.260.0030.07719.09
5.4.250.0070.07719.02
5.4.240.0100.07319.22
5.4.230.0030.07718.86
5.4.220.0070.07319.12
5.4.210.0070.04019.23
5.4.200.0030.04319.04
5.4.190.0000.08319.11
5.4.180.0170.06718.89
5.4.170.0070.07319.20
5.4.160.0100.07019.00
5.4.150.0100.04019.02
5.4.140.0130.07016.21
5.4.130.0100.06316.42
5.4.120.0030.05316.29
5.4.110.0030.03716.32
5.4.100.0070.07016.43
5.4.90.0030.07716.47
5.4.80.0100.07316.45
5.4.70.0000.08016.43
5.4.60.0100.03316.46
5.4.50.0070.04316.31
5.4.40.0070.04716.39
5.4.30.0070.06716.45
5.4.20.0100.07016.36
5.4.10.0030.04316.37
5.4.00.0030.04315.81
5.3.290.0000.08014.59
5.3.280.0170.06714.52
5.3.270.0130.06314.64
5.3.260.0100.07014.71
5.3.250.0070.04714.71
5.3.240.0030.08314.71
5.3.230.0070.04714.57
5.3.220.0030.04314.63
5.3.210.0030.05014.61
5.3.200.0000.05014.50
5.3.190.0030.07714.70
5.3.180.0030.04014.54
5.3.170.0030.07714.54
5.3.160.0170.05714.70
5.3.150.0070.04014.63
5.3.140.0130.05714.56
5.3.130.0100.06314.55
5.3.120.0130.07314.64
5.3.110.0130.07314.50
5.3.100.0030.07714.00
5.3.90.0130.04314.00
5.3.80.0000.04714.07
5.3.70.0100.07014.07
5.3.60.0100.07314.09
5.3.50.0000.06013.95
5.3.40.0030.07314.01
5.3.30.0130.05714.03
5.3.20.0030.05013.75
5.3.10.0100.06313.70
5.3.00.0030.04013.52
5.2.170.0000.04711.03
5.2.160.0030.06311.04
5.2.150.0070.05011.27
5.2.140.0070.04311.07
5.2.130.0000.03311.21
5.2.120.0100.03311.18
5.2.110.0030.03711.11
5.2.100.0070.05711.12
5.2.90.0070.05710.96
5.2.80.0130.04011.08
5.2.70.0070.03311.12
5.2.60.0070.05710.98
5.2.50.0100.05011.02
5.2.40.0030.05311.01
5.2.30.0070.03710.97
5.2.20.0070.05311.01
5.2.10.0070.04310.87
5.2.00.0030.06010.70
5.1.60.0070.03010.07
5.1.50.0000.05310.08
5.1.40.0030.0539.82
5.1.30.0070.05310.34
5.1.20.0130.02010.28
5.1.10.0030.05710.18
5.1.00.0030.06010.18
5.0.50.0000.0478.59
5.0.40.0070.0378.51
5.0.30.0030.0638.21
5.0.20.0000.0238.03
5.0.10.0000.0478.23
5.0.00.0000.0638.14
4.4.90.0100.0308.02
4.4.80.0070.0338.02
4.4.70.0070.0338.02
4.4.60.0100.0308.02
4.4.50.0070.0278.02
4.4.40.0000.0538.02
4.4.30.0000.0378.02
4.4.20.0000.0408.02
4.4.10.0100.0208.02
4.4.00.0030.0438.02
4.3.110.0070.0308.02
4.3.100.0000.0238.02
4.3.90.0000.0378.02
4.3.80.0030.0378.02
4.3.70.0030.0278.02
4.3.60.0000.0378.02
4.3.50.0000.0208.02
4.3.40.0000.0578.02
4.3.30.0000.0278.02
4.3.20.0000.0378.02
4.3.10.0000.0378.02
4.3.00.0030.0308.02

preferences:
71.1 ms | 401 KiB | 5 Q