3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kids = [ ['firstname' => 'Pat', 'surname' => 'Don', 'age' => 10 ], ['firstname' => 'Kat', 'surname' => 'Munn', 'age' => 12 ], ['firstname' => 'Dee', 'surname' => 'Ken', 'age' => 8 ] ]; $newKids = []; foreach($kids as $kid) { $newKids[] = (object) $kid; } var_dump($newKids); // error: Undefined property: stdClass::$0

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.0180.00016.50
8.3.50.0100.00716.50
8.3.40.0130.00618.54
8.3.30.0110.00418.63
8.3.20.0040.00420.34
8.3.10.0000.00721.76
8.3.00.0050.00517.78
8.2.180.0040.01125.92
8.2.170.0100.00622.96
8.2.160.0170.00020.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00322.21
8.2.120.0000.00826.35
8.2.110.0040.00419.15
8.2.100.0120.00017.84
8.2.90.0080.00017.97
8.2.80.0050.00319.29
8.2.70.0000.00818.04
8.2.60.0000.00818.16
8.2.50.0040.00418.10
8.2.40.0080.00022.32
8.2.30.0080.00021.03
8.2.20.0040.00418.09
8.2.10.0000.00818.07
8.2.00.0040.00418.11
8.1.280.0070.01025.92
8.1.270.0080.00823.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00622.19
8.1.230.0070.00420.77
8.1.220.0040.00417.74
8.1.210.0040.00418.90
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0000.00818.50
8.1.160.0000.00718.98
8.1.150.0040.00420.67
8.1.140.0040.00419.62
8.1.130.0040.00418.93
8.1.120.0040.00417.36
8.1.110.0040.00417.49
8.1.100.0040.00417.46
8.1.90.0070.00417.50
8.1.80.0040.00417.42
8.1.70.0000.00717.41
8.1.60.0040.00417.56
8.1.50.0060.00317.42
8.1.40.0060.00317.50
8.1.30.0000.00817.51
8.1.20.0070.00017.68
8.1.10.0060.00317.34
8.1.00.0030.00517.43
8.0.300.0000.00720.08
8.0.290.0040.00416.63
8.0.280.0000.00818.46
8.0.270.0030.00317.25
8.0.260.0000.00816.73
8.0.250.0030.00317.00
8.0.240.0000.00716.97
8.0.230.0080.00016.84
8.0.220.0050.00216.88
8.0.210.0080.00016.95
8.0.200.0070.00016.91
8.0.190.0060.00616.88
8.0.180.0040.00416.90
8.0.170.0000.00716.85
8.0.160.0040.00416.83
8.0.150.0040.00416.84
8.0.140.0000.00716.84
8.0.130.0060.00013.25
8.0.120.0050.00316.85
8.0.110.0000.00716.67
8.0.100.0040.00416.83
8.0.90.0040.00416.93
8.0.80.0110.00516.91
8.0.70.0000.00716.88
8.0.60.0040.00416.90
8.0.50.0000.00716.76
8.0.30.0090.00617.08
8.0.20.0130.01817.40
8.0.10.0000.00817.04
8.0.00.0120.00616.74
7.4.330.0060.00015.55
7.4.320.0000.00816.65
7.4.300.0030.00316.59
7.4.290.0050.00316.61
7.4.280.0000.00916.60
7.4.270.0030.00316.62
7.4.260.0030.00313.30
7.4.250.0000.00716.61
7.4.240.0040.00416.46
7.4.230.0030.00316.39
7.4.220.0110.00816.59
7.4.210.0070.01016.62
7.4.200.0000.00716.58
7.4.160.0130.00416.51
7.4.150.0110.00717.40
7.4.140.0090.01017.86
7.4.130.0150.00616.45
7.4.120.0090.01016.54
7.4.110.0100.00716.47
7.4.100.0080.01416.48
7.4.90.0090.00916.51
7.4.80.0070.01119.39
7.4.70.0100.00816.57
7.4.60.0060.01016.50
7.4.50.0020.01116.35
7.4.40.0170.00316.52
7.4.30.0070.01116.48
7.4.00.0030.01315.06
7.3.330.0000.00513.14
7.3.320.0000.00512.98
7.3.310.0070.00016.21
7.3.300.0000.00716.29
7.3.290.0030.00316.34
7.3.280.0070.01016.25
7.3.270.0060.01217.40
7.3.260.0120.00516.43
7.3.250.0090.01216.35
7.3.240.0090.00916.29
7.3.230.0190.00316.17
7.3.210.0130.00516.25
7.3.200.0100.00616.40
7.3.190.0030.01516.43
7.3.180.0140.00716.42
7.3.170.0100.01016.46
7.3.160.0090.00916.15
7.3.10.0030.00916.59
7.3.00.0080.00516.72
7.2.330.0160.00716.39
7.2.320.0100.00716.35
7.2.310.0120.00616.56
7.2.300.0100.01316.49
7.2.290.0060.01416.76
7.2.130.0030.00917.01
7.2.120.0050.00617.01
7.2.110.0050.00716.93
7.2.100.0070.00516.88
7.2.90.0000.01316.84
7.2.80.0090.00316.83
7.2.70.0000.01016.82
7.2.60.0040.01016.76
7.2.50.0080.00516.81
7.2.40.0060.00716.84
7.2.30.0080.00616.85
7.2.20.0070.00616.54
7.2.10.0060.00716.90
7.2.00.0040.00717.69
7.1.250.0070.00415.77
7.1.200.0000.00815.73
7.1.100.0040.00818.29
7.1.70.0030.01315.43
7.1.60.0770.01733.00
7.1.50.0200.01332.63
7.1.40.2000.01032.59
7.1.30.1670.01032.69
7.1.20.0200.01032.58
7.1.10.1570.02314.57
7.1.00.2030.01014.83
7.0.200.0030.01315.05
7.0.190.1630.02014.68
7.0.180.1970.01314.64
7.0.170.1200.00314.51
7.0.160.0030.01014.40
7.0.150.1830.01314.36
7.0.140.2000.01014.45
7.0.130.1570.01314.63
7.0.120.1600.00714.80
7.0.110.1730.00714.50
7.0.100.1930.01014.57
7.0.90.2300.01314.68
7.0.80.1730.01714.46
7.0.70.2600.00314.29
7.0.60.1800.00714.36
7.0.50.1930.01714.42
7.0.40.1900.01014.70
7.0.30.2000.01314.40
7.0.20.1700.01014.53
7.0.10.1300.01014.62
7.0.00.1500.01014.55

preferences:
55.44 ms | 400 KiB | 5 Q