3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = json_decode("{}");//new stdClass; $id = -99; $a = array('id' => $id, 'name' => 'bill'); $o->$id = $a; eval('$b = ' . var_export($o, true) . ';'); print_r($b);

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.0110.00416.63
8.3.50.0120.00717.38
8.3.40.0150.00318.71
8.3.30.0060.01518.80
8.3.20.0030.00518.90
8.3.10.0060.00320.66
8.3.00.0000.00819.25
8.2.180.0140.00716.50
8.2.170.0090.00622.96
8.2.160.0090.00922.12
8.2.150.0080.00025.66
8.2.140.0060.00324.66
8.2.130.0080.00626.16
8.2.120.0000.00819.64
8.2.110.0100.00021.00
8.2.100.0000.01117.72
8.2.90.0000.01020.95
8.2.80.0040.00418.03
8.2.70.0060.00317.75
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0040.00418.23
8.2.20.0070.00017.83
8.2.10.0000.00817.72
8.2.00.0080.00017.87
8.1.280.0070.01125.92
8.1.270.0020.00524.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00420.69
8.1.230.0070.00420.95
8.1.220.0000.00717.89
8.1.210.0040.00418.94
8.1.200.0070.00417.22
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0000.00818.91
8.1.160.0040.00418.89
8.1.150.0000.00718.55
8.1.140.0060.00317.45
8.1.130.0030.00317.74
8.1.120.0070.00017.38
8.1.110.0080.00017.47
8.1.100.0030.00417.50
8.1.90.0000.00717.43
8.1.80.0080.00017.51
8.1.70.0030.00317.48
8.1.60.0040.00417.44
8.1.50.0000.00717.37
8.1.40.0040.00417.56
8.1.30.0050.00217.54
8.1.20.0090.00017.66
8.1.10.0040.00417.45
8.1.00.0000.00817.51
8.0.300.0000.00720.04
8.0.290.0060.00316.75
8.0.280.0090.00018.48
8.0.270.0030.00317.25
8.0.260.0030.00316.88
8.0.250.0000.00816.93
8.0.240.0000.00917.03
8.0.230.0070.00016.97
8.0.220.0030.00316.96
8.0.210.0070.00016.96
8.0.200.0030.00317.02
8.0.190.0040.00417.02
8.0.180.0080.00016.94
8.0.170.0000.00916.86
8.0.160.0070.00017.00
8.0.150.0080.00017.00
8.0.140.0070.00416.85
8.0.130.0030.00313.42
8.0.120.0070.00016.84
8.0.110.0030.00516.97
8.0.100.0000.00716.82
8.0.90.0040.00416.97
8.0.80.0120.00616.85
8.0.70.0040.00416.92
8.0.60.0000.00816.82
8.0.50.0050.00316.90
8.0.30.0070.01117.17
8.0.20.0140.00516.98
8.0.10.0050.00317.11
8.0.00.0050.01416.60
7.4.330.0000.00612.93
7.4.320.0040.00416.56
7.4.300.0030.00316.60
7.4.290.0000.00716.50
7.4.280.0000.00816.51
7.4.270.0060.00016.54
7.4.260.0060.00013.26
7.4.250.0040.00416.63
7.4.240.0000.00716.47
7.4.230.0030.00316.61
7.4.220.0130.00716.48
7.4.210.0100.00616.51
7.4.200.0000.00716.55
7.4.190.0070.00016.64
7.4.160.0080.00816.73
7.4.150.0130.00616.43
7.4.140.0130.00816.66
7.4.130.0060.01316.48
7.4.120.0090.00716.44
7.4.110.0100.01016.44
7.4.100.0120.00616.48
7.4.90.0160.00316.48
7.4.80.0100.00716.59
7.4.70.0100.01016.43
7.4.60.0030.01316.42
7.4.50.0000.00516.40
7.4.40.0030.01316.46
7.4.30.0040.01816.44
7.4.00.0100.00714.97
7.3.330.0060.00013.21
7.3.320.0080.00013.30
7.3.310.0030.00316.26
7.3.300.0060.00016.38
7.3.290.0070.00716.45
7.3.280.0080.00916.47
7.3.270.0030.01416.37
7.3.260.0080.01016.61
7.3.250.0140.01016.41
7.3.240.0070.01116.35
7.3.230.0130.00616.54
7.3.210.0070.01116.61
7.3.200.0130.01019.39
7.3.190.0070.01416.63
7.3.180.0080.00816.40
7.3.170.0110.00616.55
7.3.160.0080.00816.20
7.3.120.0080.00815.02
7.3.110.0040.01414.97
7.3.100.0090.00615.02
7.3.90.0030.01014.68
7.3.80.0030.00914.87
7.3.70.0090.00914.94
7.3.60.0070.00714.66
7.3.50.0030.01214.71
7.3.40.0080.00814.94
7.3.30.0090.00614.93
7.3.20.0040.01116.79
7.3.10.0070.00716.61
7.3.00.0060.00816.67
7.2.330.0070.01216.65
7.2.320.0120.00616.71
7.2.310.0100.01316.71
7.2.300.0130.00316.71
7.2.290.0070.01016.50
7.2.250.0110.01115.18
7.2.240.0060.01314.95
7.2.230.0090.00614.93
7.2.220.0040.01115.25
7.2.210.0000.01215.18
7.2.200.0000.01515.16
7.2.190.0090.00615.25
7.2.180.0060.00315.11
7.2.170.0040.01115.11
7.2.130.0110.00316.89
7.2.120.0030.01016.85
7.2.110.0060.00816.97
7.2.100.0030.01216.91
7.2.90.0060.00816.90
7.2.80.0060.00516.96
7.2.70.0070.00716.94
7.2.60.0040.00916.89
7.2.50.0050.01016.93
7.2.40.0050.00816.72
7.2.30.0070.00816.86
7.2.20.0060.00716.80
7.2.10.0090.00716.74
7.2.00.0040.00917.83
7.1.330.0060.00915.61
7.1.320.0040.00415.84
7.1.310.0090.00915.63
7.1.300.0000.01415.86
7.1.290.0030.01015.86
7.1.280.0070.01015.81
7.1.270.0080.00315.90
7.1.260.0060.00615.79
7.1.250.0050.00715.78
7.1.200.0040.01115.99
7.1.100.0040.00818.18
7.1.70.0000.00716.80
7.1.60.0130.01319.40
7.1.50.0090.00916.83
7.1.00.0030.07322.27
7.0.200.0000.00716.74
7.0.140.0070.07022.10
7.0.120.0000.07722.08
7.0.60.0100.08021.75
7.0.50.0100.08317.67
7.0.40.0130.08320.40
7.0.30.0530.07320.41
7.0.20.0300.04320.16
7.0.10.0070.06320.20
7.0.00.0130.08020.17
5.6.280.0000.07320.98
5.6.210.0030.08320.47
5.6.200.0070.06718.12
5.6.190.0070.07320.58
5.6.180.0100.05020.49
5.6.170.0230.05320.33
5.6.160.0100.06020.52
5.6.150.0070.04318.17
5.6.140.0030.04318.21
5.6.130.0030.08018.09
5.6.120.0100.08320.99
5.6.110.0030.04020.88
5.6.100.0070.07021.13
5.6.90.0130.05721.07
5.6.80.0100.06720.37
5.5.350.0230.08320.43
5.5.340.0100.08018.02
5.5.330.0000.04720.23
5.5.320.0470.06720.24
5.5.310.0300.06020.31
5.5.300.0130.07717.91
5.5.290.0100.07718.05
5.5.280.0170.06020.63
5.5.270.0130.08020.79
5.5.260.0070.08320.88
5.5.250.0130.07020.61
5.5.240.0270.08020.32
5.4.450.0030.07019.33
5.4.440.0100.04719.24
5.4.430.0070.08019.11
5.4.420.0030.04719.32
5.4.410.0130.07019.38
5.4.400.0030.05019.09
5.4.390.0030.04718.79
5.4.380.0170.06019.02
5.4.370.0100.07018.91
5.4.360.0100.08019.18
5.4.350.0170.03719.18
5.4.340.0170.06019.16
5.4.320.0070.07018.92
5.4.310.0030.05019.21
5.4.300.0070.07718.91
5.4.290.0000.07319.19
5.4.280.0070.07718.91
5.4.270.0100.07319.11
5.4.260.0000.07019.17
5.4.250.0070.05719.07
5.4.240.0100.07319.17
5.4.230.0030.05019.16
5.4.220.0070.08019.07
5.4.210.0070.06718.93
5.4.200.0030.06019.17
5.4.190.0070.03719.16
5.4.180.0070.05019.13
5.4.170.0030.04019.07
5.4.160.0130.06319.13
5.4.150.0070.03719.16
5.4.140.0070.03716.29
5.4.130.0030.03316.32
5.4.120.0000.03716.16
5.4.110.0100.05716.32
5.4.100.0030.07316.15
5.4.90.0130.06316.27
5.4.80.0100.05316.31
5.4.70.0030.06016.21
5.4.60.0030.04316.30
5.4.50.0100.06316.17
5.4.40.0000.05016.24
5.4.30.0030.07316.38
5.4.20.0070.07016.31
5.4.10.0030.05316.37
5.4.00.0130.03715.71
5.3.290.0070.05714.69
5.3.280.0100.05314.39
5.3.270.0030.06014.49
5.3.260.0100.06014.55
5.3.250.0100.03314.55
5.3.240.0130.05714.54
5.3.230.0130.03714.52
5.3.220.0030.06014.36
5.3.210.0070.07714.51
5.3.200.0070.05714.67
5.3.190.0000.08314.45
5.3.180.0070.04714.52
5.3.170.0030.07014.49
5.3.160.0030.04714.66
5.3.150.0130.07014.53
5.3.140.0030.04314.34
5.3.130.0030.08314.37
5.3.120.0100.04314.37
5.3.110.0100.07314.48
5.3.100.0100.07013.95
5.3.90.0030.05014.00
5.3.80.0100.05313.95
5.3.70.0100.06713.96
5.3.60.0100.07313.82
5.3.50.0130.04013.96
5.3.40.0130.05713.96
5.3.30.0100.04013.87
5.3.20.0000.08313.64
5.3.10.0070.03313.48
5.3.00.0030.03713.59
5.2.170.0030.06011.07
5.2.160.0070.06311.03
5.2.150.0030.05311.16
5.2.140.0100.05711.30
5.2.130.0030.04711.00
5.2.120.0000.03311.05
5.2.110.0070.02710.99
5.2.100.0000.03311.00
5.2.90.0070.02711.04
5.2.80.0030.03011.00
5.2.70.0030.03011.05
5.2.60.0030.06311.02
5.2.50.0000.03711.18
5.2.40.0000.04310.93
5.2.30.0070.06310.91
5.2.20.0070.06310.96
5.2.10.0070.06310.94
5.2.00.0100.06010.76
5.1.60.0000.04710.00
5.1.50.0130.0439.89
5.1.40.0070.03710.01
5.1.30.0070.05710.33
5.1.20.0100.05010.31
5.1.10.0070.03710.03
5.1.00.0030.05010.05
5.0.50.0030.0438.45
5.0.40.0030.0208.42
5.0.30.0000.0438.27
5.0.20.0030.0178.27
5.0.10.0000.0208.27
5.0.00.0030.0278.27
4.4.90.0070.0138.27
4.4.80.0000.0208.27
4.4.70.0070.0338.27
4.4.60.0070.0208.27
4.4.50.0030.0208.27
4.4.40.0000.0538.27
4.4.30.0000.0338.27
4.4.20.0000.0378.27
4.4.10.0070.0308.27
4.4.00.0030.0438.27
4.3.110.0030.0138.27
4.3.100.0030.0138.27
4.3.90.0000.0178.27
4.3.80.0030.0208.27
4.3.70.0030.0138.27
4.3.60.0070.0138.27
4.3.50.0000.0178.27
4.3.40.0000.0238.27
4.3.30.0030.0138.27
4.3.20.0000.0178.27
4.3.10.0000.0178.27
4.3.00.0000.0138.27

preferences:
53.12 ms | 401 KiB | 5 Q