3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new \stdClass; $b = new \stdClass; $c = new \stdClass; $a->data = 123; $a->setter = "Abu"; $b->content = [$a, $a]; $b->data = '123'; $c->createdAt = '2017-01-01 12:00:00'; $c->payload = $b; var_dump($c); $transform = function(&$element) { if (is_array($element)) { transform($element); } }; foreach ($c as $element) { transform($element); } array_walk_recursive($c, $callback);

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.4.60.0090.01218.57
8.4.50.0160.00417.57
8.4.40.0070.00318.01
8.4.30.0120.00317.79
8.4.20.0160.00319.53
8.4.10.0060.00618.18
8.3.200.0070.00216.75
8.3.190.0110.00917.30
8.3.180.0100.00718.68
8.3.170.0070.00416.92
8.3.160.0030.00619.98
8.3.150.0180.00018.59
8.3.140.0080.00016.99
8.3.130.0030.00718.75
8.3.120.0110.00720.74
8.3.110.0040.00416.91
8.3.100.0000.00824.06
8.3.90.0030.01526.77
8.3.80.0110.00017.97
8.3.70.0090.00916.88
8.3.60.0130.00316.62
8.3.50.0120.00417.43
8.3.40.0070.01118.85
8.3.30.0040.01118.71
8.3.20.0050.00320.29
8.3.10.0060.00323.48
8.3.00.0080.00023.66
8.2.280.0130.01018.87
8.2.270.0080.00016.93
8.2.260.0040.01416.47
8.2.250.0050.00318.62
8.2.240.0060.00317.32
8.2.230.0060.00320.94
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0030.00617.00
8.2.190.0000.01517.00
8.2.180.0060.00918.54
8.2.170.0130.00922.96
8.2.160.0070.00720.34
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.25
8.2.120.0000.00826.35
8.2.110.0050.00520.95
8.2.100.0040.00817.84
8.2.90.0060.00319.27
8.2.80.0000.00817.97
8.2.70.0040.00417.61
8.2.60.0050.00317.80
8.2.50.0000.00918.10
8.2.40.0080.00020.56
8.2.30.0050.00319.28
8.2.20.0070.00017.96
8.2.10.0000.00718.07
8.2.00.0080.00017.96
8.1.320.0110.00718.22
8.1.310.0040.01518.63
8.1.300.0090.00916.20
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0050.00324.02
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00021.31
8.1.230.0070.00317.64
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0000.00917.21
8.1.190.0050.00317.22
8.1.180.0000.00918.10
8.1.170.0080.00018.64
8.1.160.0070.00018.89
8.1.150.0000.00820.71
8.1.140.0000.00717.70
8.1.130.0030.00318.79
8.1.120.0070.00317.41
8.1.110.0030.00517.48
8.1.100.0000.00717.51
8.1.90.0090.00017.50
8.1.80.0050.00317.41
8.1.70.0000.00717.48
8.1.60.0030.00617.66
8.1.50.0030.00717.39
8.1.40.0030.00617.53
8.1.30.0050.00317.62
8.1.20.0000.00817.68
8.1.10.0080.00017.57
8.1.00.0070.00017.56
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0030.00418.48
8.0.270.0000.00717.20
8.0.260.0080.00016.85
8.0.250.0000.00617.07
8.0.240.0000.00716.91
8.0.230.0030.00517.03
8.0.220.0040.00416.91
8.0.210.0070.00016.98
8.0.200.0030.00316.93
8.0.190.0030.00616.93
8.0.180.0000.00717.03
8.0.170.0040.00416.96
8.0.160.0040.00417.08
8.0.150.0000.00816.90
8.0.140.0000.00716.84
8.0.130.0070.00013.33
8.0.120.0050.00316.95
8.0.110.0000.00716.93
8.0.100.0040.00416.88
8.0.90.0030.00516.86
8.0.80.0150.00616.92
8.0.70.0080.00016.97
8.0.60.0040.00416.76
8.0.50.0040.00416.95
8.0.30.0060.01117.17
8.0.20.0130.01017.40
8.0.10.0040.00416.97
8.0.00.0090.00916.82
7.4.330.0000.00516.66
7.4.320.0070.00016.62
7.4.300.0060.00016.54
7.4.290.0000.00716.57
7.4.280.0080.00316.50
7.4.270.0070.00016.60
7.4.260.0000.00716.58
7.4.250.0040.00416.63
7.4.240.0040.00416.46
7.4.230.0030.00316.37
7.4.220.0150.00316.64
7.4.210.0040.01316.53
7.4.200.0030.00316.52
7.4.160.0080.00916.50
7.4.150.0130.00517.40
7.4.140.0110.00917.86
7.4.130.0170.00716.71
7.4.120.0130.00716.54
7.4.110.0140.00316.79
7.4.100.0130.00416.38
7.4.90.0110.00816.55
7.4.80.0080.00819.39
7.4.70.0100.00916.55
7.4.60.0070.01016.41
7.4.50.0070.01116.34
7.4.40.0100.00716.63
7.4.30.0040.01216.73
7.4.00.0030.01015.07
7.3.330.0050.00013.33
7.3.320.0030.00213.38
7.3.310.0000.00716.28
7.3.300.0000.00716.19
7.3.290.0030.00316.25
7.3.280.0080.00816.38
7.3.270.0140.00617.40
7.3.260.0060.01516.50
7.3.250.0120.00816.57
7.3.240.0060.01316.50
7.3.230.0080.00816.65
7.3.210.0130.00616.37
7.3.200.0100.01016.52
7.3.190.0120.00916.69
7.3.180.0100.01016.44
7.3.170.0000.01616.58
7.3.160.0030.01316.62
7.2.330.0110.00716.74
7.2.320.0070.01016.70
7.2.310.0090.01516.69
7.2.300.0180.00616.46
7.2.290.0060.01216.77
7.2.80.0120.00016.80
7.2.60.0130.00717.07
7.2.50.0030.00917.04
7.1.200.0040.01115.48
7.1.110.0090.00618.35
7.1.100.0090.00918.07
7.1.90.0030.01517.86
7.1.80.0480.01716.35
7.1.70.0490.00315.28
7.1.60.0640.01734.85
7.1.50.0720.00932.92
7.1.40.0150.02034.33
7.1.30.0200.01534.67
7.1.20.0130.02334.50
7.1.10.0110.00616.64
7.1.00.0030.01716.73
7.0.250.0060.01517.58
7.0.240.0080.00817.80
7.0.230.0050.01318.01
7.0.220.0080.00817.77
7.0.210.0390.01316.63
7.0.200.0080.01116.79
7.0.190.0430.00715.02
7.0.180.0380.01414.38
7.0.170.0000.01716.52
7.0.160.0100.00616.18
7.0.150.0030.01716.19
7.0.140.0060.01316.24
7.0.130.0110.00816.57
7.0.120.0040.01616.57
7.0.110.0090.01116.45
7.0.100.0110.00716.23
7.0.90.0070.01616.09
7.0.80.0060.01616.60
7.0.70.0090.01416.23
7.0.60.0070.01316.26
7.0.50.0000.01816.52
7.0.40.0040.01316.52
7.0.30.0060.01116.23
7.0.20.0070.01116.42
7.0.10.0080.01016.30
7.0.00.0000.01816.59

preferences:
29.23 ms | 403 KiB | 5 Q