3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o1 = new stdClass(); $o1->id = 123; $o1->title = 'test'; $o2 = new stdClass(); $o2->id = 456; $o2->title = 'test2'; $arrofobjects = [ $o1,$o2 ]; var_dump($arrofobjects); $newArr = array_map(function($obj) { return [$obj->id => $obj->title]; }, $arrofobjects); var_dump($newArr);

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.01116.63
8.3.50.0110.00716.60
8.3.40.0090.00618.89
8.3.30.0130.00318.79
8.3.20.0000.00720.20
8.3.10.0040.00421.77
8.3.00.0080.00019.79
8.2.180.0070.01316.75
8.2.170.0070.00722.96
8.2.160.0140.00721.07
8.2.150.0000.00724.18
8.2.140.0120.00624.66
8.2.130.0080.00022.25
8.2.120.0000.00826.35
8.2.110.0070.00322.05
8.2.100.0080.00417.91
8.2.90.0050.00322.32
8.2.80.0000.00917.97
8.2.70.0080.00017.93
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0040.00422.31
8.2.30.0000.00719.38
8.2.20.0070.00018.19
8.2.10.0050.00218.21
8.2.00.0030.00318.13
8.1.280.0090.01225.92
8.1.270.0040.00423.92
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00722.63
8.1.230.0080.00420.88
8.1.220.0040.00417.74
8.1.210.0040.00419.04
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00918.46
8.1.160.0040.00418.76
8.1.150.0040.00420.15
8.1.140.0080.00019.49
8.1.130.0000.00717.45
8.1.120.0040.00317.46
8.1.110.0030.00517.34
8.1.100.0030.00617.37
8.1.90.0000.00817.36
8.1.80.0050.00217.29
8.1.70.0040.00417.45
8.1.60.0040.00417.48
8.1.50.0040.00417.43
8.1.40.0040.00417.50
8.1.30.0000.00817.55
8.1.20.0060.00317.61
8.1.10.0040.00417.50
8.1.00.0070.00017.44
8.0.300.0000.00719.86
8.0.290.0000.00916.75
8.0.280.0030.00518.32
8.0.270.0100.00017.22
8.0.260.0000.00716.88
8.0.250.0000.00716.98
8.0.240.0050.00217.00
8.0.230.0030.00316.84
8.0.220.0040.00416.96
8.0.210.0000.00716.78
8.0.200.0040.00416.84
8.0.190.0000.00716.83
8.0.180.0080.00016.91
8.0.170.0040.00416.92
8.0.160.0040.00416.83
8.0.150.0060.00316.93
8.0.140.0070.00016.85
8.0.130.0000.00513.30
8.0.120.0080.00016.80
8.0.110.0000.00716.72
8.0.100.0000.00816.83
8.0.90.0050.00216.85
8.0.80.0090.00616.95
8.0.70.0000.00716.80
8.0.60.0030.00516.76
8.0.50.0000.00816.92
8.0.30.0090.01017.08
8.0.20.0110.01017.40
8.0.10.0040.00416.91
8.0.00.0120.00616.81
7.4.330.0030.00315.55
7.4.320.0030.00316.57
7.4.300.0060.00016.50
7.4.290.0000.00616.51
7.4.280.0040.00416.59
7.4.270.0030.00316.55
7.4.260.0040.00416.39
7.4.250.0030.00316.54
7.4.240.0000.00816.53
7.4.230.0000.00716.57
7.4.220.0170.00816.56
7.4.210.0080.00916.61
7.4.200.0030.00516.48
7.4.160.0080.00916.41
7.4.150.0090.00917.40
7.4.140.0110.01117.86
7.4.130.0120.00616.60
7.4.120.0110.01116.56
7.4.110.0120.00616.43
7.4.100.0130.00616.45
7.4.90.0120.00616.53
7.4.80.0140.00319.39
7.4.70.0120.00616.51
7.4.60.0150.00916.60
7.4.50.0070.00716.49
7.4.40.0080.00816.46
7.4.30.0130.00316.31
7.4.00.0070.01015.22
7.3.330.0050.00013.07
7.3.320.0030.00313.11
7.3.310.0080.00016.30
7.3.300.0060.00016.30
7.3.290.0070.00016.26
7.3.280.0080.00816.27
7.3.270.0140.00417.40
7.3.260.0140.00816.31
7.3.250.0100.00916.34
7.3.240.0080.01016.50
7.3.230.0120.00616.32
7.3.210.0120.00616.42
7.3.200.0060.01016.36
7.3.190.0120.00616.44
7.3.180.0070.01716.45
7.3.170.0120.00916.57
7.3.160.0060.01216.49
7.2.330.0070.01016.64
7.2.320.0040.01416.69
7.2.310.0070.01016.47
7.2.300.0150.00916.71
7.2.290.0120.00616.86
7.2.110.0250.00716.76
7.2.60.0060.00916.84
7.1.200.0140.00015.53
7.1.70.0030.00617.14
7.1.60.0000.01117.25
7.1.50.0040.00716.85
7.1.40.0070.00716.86
7.1.30.0100.00016.45
7.1.20.0100.00316.77
7.1.10.0040.00816.67
7.1.00.0000.01016.82
7.0.200.0060.00316.59
7.0.190.0000.00816.55
7.0.180.0030.00616.26
7.0.170.0050.00216.10
7.0.160.0040.00416.22
7.0.150.0000.01016.30
7.0.140.0030.00616.25
7.0.130.0000.00816.47
7.0.120.0000.00716.63
7.0.110.0030.00716.36
7.0.100.0030.00716.43
7.0.90.0000.00816.20
7.0.80.0000.00716.26
7.0.70.0000.00816.59
7.0.60.0040.00416.29
7.0.50.0040.00416.38
7.0.40.0040.01115.43
7.0.30.0040.00415.43
7.0.20.0050.00215.43
7.0.10.0030.00615.43
7.0.00.0000.00715.43

preferences:
66.42 ms | 400 KiB | 5 Q