3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Cheese\Topping\Please { class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $biz = 'bizValue'; } $foo = new \Cheese\Topping\Please\Foo(); $arrayFoo = (array) $foo; $out = json_encode($arrayFoo); $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.0120.00918.17
8.3.50.0210.00921.13
8.3.40.0100.00718.79
8.3.30.0110.00418.63
8.3.20.0040.00418.73
8.3.10.0040.00421.09
8.3.00.0060.00319.66
8.2.180.0090.00616.88
8.2.170.0140.00722.96
8.2.160.0090.00620.35
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0080.00022.20
8.2.100.0110.00017.84
8.2.90.0040.00419.22
8.2.80.0030.00619.47
8.2.70.0030.00517.75
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0030.00618.22
8.2.30.0020.00521.30
8.2.20.0040.00417.80
8.2.10.0040.00417.79
8.2.00.0060.00317.65
8.1.280.0040.01125.92
8.1.270.0060.00323.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0070.00322.42
8.1.230.0000.01120.91
8.1.220.0000.00818.77
8.1.210.0030.00518.95
8.1.200.0030.00617.36
8.1.190.0000.00917.41
8.1.180.0040.00418.10
8.1.170.0090.00018.71
8.1.160.0040.00418.86
8.1.150.0040.00418.71
8.1.140.0080.00017.53
8.1.130.0000.00717.75
8.1.120.0000.00717.54
8.1.110.0030.00517.53
8.1.100.0030.00417.57
8.1.90.0000.00717.43
8.1.80.0000.00717.51
8.1.70.0050.00317.50
8.1.60.0030.00617.61
8.1.50.0080.00017.64
8.1.40.0030.00617.54
8.1.30.0040.00417.65
8.1.20.0000.00817.69
8.1.10.0050.00217.70
8.1.00.0000.01017.58
8.0.300.0000.00719.88
8.0.290.0040.00417.04
8.0.280.0070.00018.29
8.0.270.0070.00017.18
8.0.260.0030.00318.31
8.0.250.0040.00416.92
8.0.240.0020.00517.00
8.0.230.0070.00017.10
8.0.220.0040.00416.98
8.0.210.0040.00416.93
8.0.200.0040.00417.07
8.0.190.0040.00417.02
8.0.180.0080.00017.04
8.0.170.0000.00716.88
8.0.160.0000.00817.03
8.0.150.0040.00416.85
8.0.140.0040.00416.79
8.0.130.0000.00713.41
8.0.120.0050.00316.82
8.0.110.0080.00017.00
8.0.100.0030.00317.00
8.0.90.0040.00416.95
8.0.80.0040.01116.97
8.0.70.0000.00717.01
8.0.60.0000.00716.82
8.0.50.0000.00716.77
8.0.30.0120.01317.16
8.0.20.0110.00817.40
8.0.10.0060.00317.08
8.0.00.0190.00716.88
7.4.330.0000.00516.85
7.4.320.0000.00616.82
7.4.300.0030.00316.66
7.4.290.0060.00016.83
7.4.280.0070.00016.80
7.4.270.0000.00716.86
7.4.260.0000.00513.46
7.4.250.0040.00416.73
7.4.240.0000.00716.88
7.4.230.0040.00416.80
7.4.220.0100.00716.85
7.4.210.0050.01016.85
7.4.200.0030.00316.74
7.4.190.0030.00516.92
7.4.160.0100.00516.70
7.4.150.0300.02817.40
7.4.140.0130.00417.86
7.4.130.0110.00816.51
7.4.120.0110.00616.55
7.4.110.0120.00616.74
7.4.100.0070.01016.88
7.4.90.0080.01116.61
7.4.80.0200.00319.39
7.4.70.0090.00916.63
7.4.60.0030.01316.69
7.4.50.0060.00316.45
7.4.40.0070.01022.77
7.4.30.0130.00716.57
7.4.00.0030.01214.95
7.3.330.0000.00513.25
7.3.320.0090.00013.45
7.3.310.0030.00316.42
7.3.300.0000.00816.26
7.3.290.0040.01116.48
7.3.280.0080.00916.41
7.3.270.0090.00917.40
7.3.260.0080.01218.24
7.3.250.0100.00816.58
7.3.240.0070.01016.63
7.3.230.0100.00716.61
7.3.210.0100.01216.58
7.3.200.0090.01219.39
7.3.190.0060.01216.55
7.3.180.0140.00316.40
7.3.170.0060.00916.63
7.3.160.0080.00816.71
7.3.120.0070.01014.67
7.3.110.0150.00314.90
7.3.100.0030.01415.12
7.3.90.0060.00315.11
7.3.80.0120.00315.09
7.3.70.0100.00714.63
7.3.60.0100.00714.83
7.3.50.0080.00614.82
7.3.40.0040.00414.97
7.3.30.0030.01214.82
7.3.20.0030.01316.76
7.3.10.0060.00916.86
7.3.00.0080.00716.62
7.2.330.0040.01316.77
7.2.320.0120.00916.63
7.2.310.0040.01516.88
7.2.300.0030.01416.86
7.2.290.0140.00316.75
7.2.240.0000.01415.25
7.2.230.0080.00814.99
7.2.220.0030.00615.31
7.2.210.0120.00314.91
7.2.200.0070.01015.05
7.2.190.0060.01015.16
7.2.180.0070.00415.05
7.2.170.0060.00615.16
7.2.160.0140.00315.28
7.2.150.0100.00717.02
7.2.140.0040.01516.77
7.2.130.0040.00817.02
7.2.120.0020.01217.09
7.2.110.0000.01216.96
7.2.100.0040.00816.92
7.2.90.0100.00116.91
7.2.80.0040.00916.89
7.2.70.0060.00517.03
7.2.60.0020.01216.96
7.2.50.0070.00716.82
7.2.40.0030.00917.00
7.2.30.0030.01217.17
7.2.20.0060.00817.02
7.2.10.0030.00916.82
7.2.00.0110.00617.84
7.1.330.0060.00615.97
7.1.320.0070.00716.04
7.1.310.0030.00915.88
7.1.300.0040.01115.73
7.1.290.0000.01416.04
7.1.280.0040.00815.66
7.1.270.0070.01015.89
7.1.260.0030.01315.76
7.1.250.0090.00015.58
7.1.100.0090.00318.06
7.1.70.0040.00417.28
7.1.60.0060.01919.24
7.1.50.0100.01316.93
7.1.00.0070.03022.55
7.0.200.0000.00716.97
7.0.140.0130.05722.04
7.0.70.0000.09021.70
7.0.60.0030.04721.86
7.0.50.0030.04322.19
7.0.40.0100.08020.08
7.0.30.0100.07720.11
7.0.20.0100.07720.17
7.0.10.0170.07020.10
7.0.00.0130.07320.12
5.6.280.0000.07320.86
5.6.220.0030.08320.55
5.6.210.0000.06720.71
5.6.200.0000.04320.93
5.6.190.0000.04720.96
5.6.180.0030.05021.11
5.6.170.0000.07321.14
5.6.160.0000.09020.95
5.6.150.0130.08021.13
5.6.140.0030.07321.04
5.6.130.0030.09021.05
5.6.120.0000.06721.04
5.6.110.0070.06021.06
5.6.100.0100.07320.95
5.6.90.0030.08021.08
5.6.80.0100.06020.39
5.6.70.0070.05020.45
5.6.60.0030.04020.39
5.6.50.0130.03020.50
5.6.40.0030.07720.41
5.6.30.0070.03720.50
5.6.20.0030.04020.29
5.6.10.0030.05020.52
5.6.00.0030.03720.29
5.5.360.0030.06320.50
5.5.350.0000.07320.33
5.5.340.0030.04320.81
5.5.330.0030.08020.80
5.5.320.0130.07720.82
5.5.310.0030.07720.93
5.5.300.0130.07320.92
5.5.290.0070.08720.77
5.5.280.0030.08020.73
5.5.270.0070.06720.75
5.5.260.0030.06020.77
5.5.250.0100.07320.70
5.5.240.0030.04720.30
5.5.230.0030.05720.24
5.5.220.0030.04020.10
5.5.210.0000.04020.17
5.5.200.0000.04320.16
5.5.190.0000.04020.14
5.5.180.0030.04020.12
5.5.160.0070.04020.27
5.5.150.0000.04020.25
5.5.140.0030.03720.15
5.5.130.0030.03720.08
5.5.120.0030.03720.20
5.5.110.0070.03720.22
5.5.100.0070.06020.16
5.5.90.0030.03020.15
5.5.80.0030.03720.08
5.5.70.0000.03320.10
5.5.60.0030.03020.07
5.5.50.0000.03720.09
5.5.40.0030.05320.05
5.5.30.0030.08020.05
5.5.20.0030.03719.93
5.5.10.0030.03720.03
5.5.00.0030.03720.12
5.4.450.0030.05719.53
5.4.440.0030.06719.53
5.4.430.0070.05319.25
5.4.420.0100.07019.17
5.4.410.0100.06719.24
5.4.400.0030.08019.07
5.4.390.0030.03718.85
5.4.380.0000.04019.23
5.4.370.0030.03718.85
5.4.360.0070.04719.15
5.4.350.0000.04019.23
5.4.340.0030.03719.14
5.4.320.0030.04718.96
5.4.310.0030.03719.03
5.4.300.0030.03718.89
5.4.290.0000.06018.95
5.4.280.0000.04319.09
5.4.270.0030.03719.04
5.4.260.0000.05019.15
5.4.250.0000.04018.89
5.4.240.0000.03719.20
5.4.230.0070.04719.03
5.4.220.0070.05018.87
5.4.210.0000.03719.09
5.4.200.0000.06019.04
5.4.190.0030.07319.17
5.4.180.0030.03319.02
5.4.170.0030.03718.93
5.4.160.0030.03319.16
5.4.150.0030.03719.11
5.4.140.0030.03316.28
5.4.130.0000.03016.41
5.4.120.0000.03316.35
5.4.110.0030.03716.43
5.4.100.0000.04016.50
5.4.90.0000.03716.47
5.4.80.0000.04316.40
5.4.70.0000.03316.32
5.4.60.0000.03316.30
5.4.50.0000.03016.39
5.4.40.0030.06016.54
5.4.30.0030.03316.39
5.4.20.0070.06316.46
5.4.10.0000.06316.36
5.4.00.0100.06715.85
5.3.290.0000.04014.59
5.3.280.0000.04014.68
5.3.270.0000.03714.67
5.3.260.0000.03714.54
5.3.250.0030.02714.59
5.3.240.0000.04014.74
5.3.230.0000.03714.63
5.3.220.0030.02714.63
5.3.210.0130.02014.52
5.3.200.0070.03014.62
5.3.190.0000.03014.54
5.3.180.0000.03014.58
5.3.170.0000.04314.68
5.3.160.0000.03714.68
5.3.150.0000.03314.63
5.3.140.0000.03714.66
5.3.130.0000.03314.52
5.3.120.0000.03314.51
5.3.110.0000.04314.53
5.3.100.0000.07713.98
5.3.90.0030.04313.95
5.3.80.0030.07013.94
5.3.70.0030.07014.00
5.3.60.0070.04713.89
5.3.50.0100.06714.00
5.3.40.0070.07013.84
5.3.30.0070.06013.88
5.3.20.0070.07013.74
5.3.10.0030.07013.79
5.3.00.0030.04713.78
5.2.170.0000.06312.25
5.2.160.0100.03312.25
5.2.150.0000.06312.25
5.2.140.0030.05312.25
5.2.130.0100.05312.25
5.2.120.0070.06012.25
5.2.110.0100.05312.25
5.2.100.0030.05312.25
5.2.90.0000.05712.25
5.2.80.0000.06712.25
5.2.70.0030.06312.25
5.2.60.0000.05312.25
5.2.50.0070.03312.25
5.2.40.0030.06312.25
5.2.30.0070.06012.25
5.2.20.0070.05712.25
5.2.10.0000.05712.25
5.2.00.0030.06312.25
5.1.60.0130.03712.25
5.1.50.0000.05312.25
5.1.40.0030.04012.25
5.1.30.0000.05312.25
5.1.20.0000.06012.25
5.1.10.0030.04012.25
5.1.00.0100.02712.25
5.0.50.0000.02312.25
5.0.40.0030.04312.25
5.0.30.0100.06012.25
5.0.20.0070.04012.25
5.0.10.0030.04312.25
5.0.00.0030.06712.25
4.4.90.0030.03312.25
4.4.80.0030.02012.25
4.4.70.0000.03712.25
4.4.60.0000.03012.25
4.4.50.0000.03712.25
4.4.40.0030.05312.25
4.4.30.0000.03712.25
4.4.20.0030.02312.25
4.4.10.0030.03712.25
4.4.00.0030.05712.25
4.3.110.0000.03712.25
4.3.100.0030.03312.25
4.3.90.0030.03312.25
4.3.80.0000.05712.25
4.3.70.0000.02312.25
4.3.60.0000.03312.25
4.3.50.0000.03712.25
4.3.40.0000.05012.25
4.3.30.0000.04012.25
4.3.20.0000.03312.25
4.3.10.0000.03312.25
4.3.00.0000.03312.25

preferences:
44.54 ms | 401 KiB | 5 Q