3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); $a->foo = new stdClass(); $a->foo->bar = new stdClass(); $a->foo->ber = 'BEER'; $a->faa = 'AAAA'; $a->fee = 'EEEE'; var_dump($a); $toarray = (array)$a; var_dump($toarray);

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.0060.01016.63
8.3.50.0070.00717.29
8.3.40.0070.00718.39
8.3.30.0110.00418.50
8.3.20.0000.00818.57
8.3.10.0040.00418.43
8.3.00.0040.00419.13
8.2.180.0060.00916.75
8.2.170.0110.00422.96
8.2.160.0150.00018.74
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0030.00721.05
8.2.100.0130.00017.84
8.2.90.0130.00019.02
8.2.80.0040.00419.27
8.2.70.0060.00317.38
8.2.60.0000.00917.93
8.2.50.0000.00717.80
8.2.40.0080.00019.21
8.2.30.0080.00017.59
8.2.20.0060.00317.50
8.2.10.0080.00019.47
8.2.00.0090.00317.48
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.14
8.1.230.0080.00417.89
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0000.01017.23
8.1.180.0080.00018.10
8.1.170.0050.00317.62
8.1.160.0000.00819.03
8.1.150.0000.00718.62
8.1.140.0040.00417.48
8.1.130.0070.00019.21
8.1.120.0000.00717.46
8.1.110.0070.00017.37
8.1.100.0000.00717.40
8.1.90.0040.00417.31
8.1.80.0030.00517.44
8.1.70.0040.00417.34
8.1.60.0050.00317.63
8.1.50.0000.00817.52
8.1.40.0000.00917.51
8.1.30.0000.00817.53
8.1.20.0040.00717.68
8.1.10.0000.00717.50
8.1.00.0000.00717.47
8.0.300.0040.00418.77
8.0.290.0020.00516.58
8.0.280.0070.00018.55
8.0.270.0070.00017.10
8.0.260.0030.00616.75
8.0.250.0000.00716.79
8.0.240.0080.00016.95
8.0.230.0040.00416.77
8.0.220.0030.00316.83
8.0.210.0000.00716.87
8.0.200.0050.00216.88
8.0.190.0040.00416.79
8.0.180.0040.00416.84
8.0.170.0080.00016.83
8.0.160.0040.00416.77
8.0.150.0060.00316.69
8.0.140.0040.00416.66
8.0.130.0000.00513.19
8.0.120.0040.00516.68
8.0.110.0080.00016.88
8.0.100.0070.00016.86
8.0.90.0050.00216.70
8.0.80.0030.01316.75
8.0.70.0000.00716.71
8.0.60.0030.00516.86
8.0.50.0000.00816.88
8.0.30.0070.01117.24
8.0.20.0150.00317.14
8.0.10.0040.00416.98
8.0.00.0100.01216.67
7.4.330.0000.00512.93
7.4.320.0040.00416.48
7.4.300.0060.00016.52
7.4.290.0060.00316.52
7.4.280.0040.00416.47
7.4.270.0030.00716.46
7.4.260.0000.00813.29
7.4.250.0030.00616.63
7.4.240.0000.00816.50
7.4.230.0050.00216.59
7.4.220.0100.01416.65
7.4.210.0140.00716.50
7.4.200.0000.00916.34
7.4.190.0080.00016.40
7.4.160.0170.00316.35
7.4.150.0150.00316.46
7.4.140.0080.01317.86
7.4.130.0110.01416.30
7.4.120.0120.01316.43
7.4.110.0100.01016.49
7.4.100.0190.00316.47
7.4.90.0120.00616.39
7.4.80.0080.01116.38
7.4.70.0090.00916.59
7.4.60.0090.00616.46
7.4.50.0030.00516.44
7.4.40.0040.01116.56
7.4.30.0060.01216.58
7.4.00.0070.00714.70
7.3.330.0030.00313.16
7.3.320.0000.00613.11
7.3.310.0040.00416.32
7.3.300.0030.00316.12
7.3.290.0060.01016.28
7.3.280.0120.00316.25
7.3.270.0090.00916.28
7.3.260.0060.01616.53
7.3.240.0160.00316.47
7.3.230.0100.00816.30
7.3.210.0070.01016.35
7.3.200.0090.01416.27
7.3.190.0090.00816.58
7.3.180.0140.00816.21
7.3.170.0140.00316.42
7.3.160.0110.00716.36
7.3.120.0000.01314.80
7.3.10.0070.00716.39
7.3.00.0070.00716.53
7.2.330.0090.00916.48
7.2.320.0120.00616.79
7.2.310.0140.00416.80
7.2.300.0040.01516.61
7.2.290.0040.01816.73
7.2.130.0070.00716.98
7.2.120.0070.01316.82
7.2.110.0100.00316.86
7.2.100.0030.00717.04
7.2.90.0070.01016.59
7.2.80.0100.00716.99
7.2.70.0000.01916.94
7.2.60.0030.00716.79
7.2.50.0040.01117.03
7.2.40.0000.01617.00
7.2.30.0090.00317.08
7.2.20.0100.00316.75
7.2.10.0090.00617.01
7.2.00.0050.01118.19
7.1.250.0000.01015.71
7.1.100.0040.00818.02
7.1.70.0000.00816.95
7.1.60.0100.01619.25
7.1.50.0070.00716.77
7.1.00.0030.04322.45
7.0.200.0000.00716.66
7.0.140.0070.07022.07
7.0.120.0070.06322.05
7.0.60.0100.08319.91
7.0.50.0130.04317.80
7.0.40.0170.07317.66
7.0.30.0070.05017.75
7.0.20.0100.04017.71
7.0.10.0070.08317.77
7.0.00.0070.08017.68
5.6.280.0030.07020.92
5.6.210.0030.04020.50
5.6.200.0170.07318.16
5.6.190.0070.07018.21
5.6.180.0070.05018.19
5.6.170.0000.05018.19
5.6.160.0030.06318.09
5.6.150.0100.07318.19
5.6.140.0130.07718.14
5.6.130.0000.04718.13
5.6.120.0100.05718.10
5.6.110.0170.07318.07
5.6.100.0100.07718.18
5.6.90.0000.05318.07
5.6.80.0100.07017.57
5.6.70.0000.08317.59
5.6.60.0100.06017.48
5.6.50.0100.07317.54
5.6.40.0030.08717.57
5.6.30.0070.07017.48
5.6.20.0100.03717.52
5.6.10.0070.07017.46
5.6.00.0130.06317.50
5.5.350.0030.07320.36
5.5.340.0100.06717.93
5.5.330.0070.04017.95
5.5.320.0030.06018.02
5.5.310.0100.03317.94
5.5.300.0130.06017.97
5.5.290.0030.04017.95
5.5.280.0070.07718.01
5.5.270.0070.08317.94
5.5.260.0100.07317.96
5.5.250.0070.06017.83
5.5.240.0100.06717.39
5.5.230.0030.07317.40
5.5.220.0070.07317.32
5.5.210.0070.06317.32
5.5.200.0030.07017.33
5.5.190.0030.08317.37
5.5.180.0030.05717.37
5.5.160.0070.07717.27
5.5.150.0130.05717.36
5.5.140.0170.06717.22
5.5.130.0070.08317.23
5.5.120.0100.04017.35
5.5.110.0100.04717.32
5.5.100.0130.03317.18
5.5.90.0100.06717.30
5.5.80.0130.07017.23
5.5.70.0070.07717.13
5.5.60.0070.07717.21
5.5.50.0100.03717.15
5.5.40.0100.07717.25
5.5.30.0100.06317.18
5.5.20.0100.05317.15
5.5.10.0100.06017.20
5.5.00.0030.05717.26
5.4.450.0030.05019.54
5.4.440.0070.08019.42
5.4.430.0130.03719.14
5.4.420.0100.04319.53
5.4.410.0030.04719.40
5.4.400.0070.06318.95
5.4.390.0100.04318.98
5.4.380.0030.05718.98
5.4.370.0100.03319.03
5.4.360.0030.06318.82
5.4.350.0070.05718.99
5.4.340.0100.07719.04
5.4.320.0070.07019.04
5.4.310.0230.06318.95
5.4.300.0100.07719.01
5.4.290.0070.06719.20
5.4.280.0070.04018.99
5.4.270.0070.03718.95
5.4.260.0100.04318.98
5.4.250.0030.03718.98
5.4.240.0070.07719.11
5.4.230.0100.07019.01
5.4.220.0030.05018.98
5.4.210.0130.06319.03
5.4.200.0130.06318.98
5.4.190.0100.07718.97
5.4.180.0070.07719.01
5.4.170.0070.07019.09
5.4.160.0070.05318.96
5.4.150.0170.06718.96
5.4.140.0000.06716.27
5.4.130.0130.06016.17
5.4.120.0000.05016.24
5.4.110.0100.07316.29
5.4.100.0070.07016.24
5.4.90.0070.07316.37
5.4.80.0100.07016.15
5.4.70.0070.07716.26
5.4.60.0070.07016.25
5.4.50.0100.05316.23
5.4.40.0000.07316.30
5.4.30.0030.04716.24
5.4.20.0070.06016.22
5.4.10.0070.04316.33
5.4.00.0100.03715.62
5.3.290.0070.07314.53
5.3.280.0070.07014.67
5.3.270.0070.06314.58
5.3.260.0100.05014.57
5.3.250.0030.07714.57
5.3.240.0100.06014.56
5.3.230.0130.06314.61
5.3.220.0070.05714.34
5.3.210.0030.07714.39
5.3.200.0070.06314.42
5.3.190.0030.06714.48
5.3.180.0100.04314.50
5.3.170.0070.07314.48
5.3.160.0070.05714.40
5.3.150.0030.06014.38
5.3.140.0000.06314.41
5.3.130.0000.07014.50
5.3.120.0030.05714.34
5.3.110.0100.05314.52
5.3.100.0000.04013.86
5.3.90.0070.03313.84
5.3.80.0100.04313.97
5.3.70.0070.04313.98
5.3.60.0030.05313.96
5.3.50.0030.06313.88
5.3.40.0100.03713.91
5.3.30.0070.04013.84
5.3.20.0130.02713.63
5.3.10.0100.06313.41
5.3.00.0030.04713.41
5.2.170.0100.05711.14
5.2.160.0070.06311.12
5.2.150.0070.05711.14
5.2.140.0070.02711.09
5.2.130.0100.06011.00
5.2.120.0100.05710.93
5.2.110.0100.06010.88
5.2.100.0070.04711.07
5.2.90.0100.05711.10
5.2.80.0030.03010.93
5.2.70.0030.03711.03
5.2.60.0100.06311.02
5.2.50.0030.06311.02
5.2.40.0070.05711.02
5.2.30.0070.05710.96
5.2.20.0070.06310.89
5.2.10.0070.02310.89
5.2.00.0000.03710.69
5.1.60.0030.0239.98
5.1.50.0030.02310.14
5.1.40.0000.02310.01
5.1.30.0000.02710.22
5.1.20.0000.02710.40
5.1.10.0070.0209.98
5.1.00.0000.02710.05
5.0.50.0030.0178.52
5.0.40.0000.0208.34
5.0.30.0070.0278.29
5.0.20.0070.0208.28
5.0.10.0000.0208.23
5.0.00.0000.0508.23
4.4.90.0000.0378.23
4.4.80.0000.0378.23
4.4.70.0030.0308.23
4.4.60.0030.0208.23
4.4.50.0000.0178.23
4.4.40.0000.0278.23
4.4.30.0030.0138.23
4.4.20.0030.0138.23
4.4.10.0000.0178.23
4.4.00.0000.0238.23
4.3.110.0030.0138.23
4.3.100.0000.0178.23
4.3.90.0000.0208.23
4.3.80.0000.0278.23
4.3.70.0000.0338.23
4.3.60.0000.0278.23
4.3.50.0000.0308.23
4.3.40.0030.0208.23
4.3.30.0030.0108.23
4.3.20.0000.0338.23
4.3.10.0000.0138.23
4.3.00.0000.0138.23

preferences:
46.12 ms | 401 KiB | 5 Q