3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ "1_apartment_bldgs"=>["geraldine", "jai_sai"], "2_housings"=>["housing_prototype", "bla"] ]; $output = []; foreach ($input as $key => $arr) { $arr2 = []; foreach ($arr as $p) { $arr2[$p] = ['project' => ucwords(str_replace('_', ' ', $p))]; } $output[$key] = $arr2; } echo json_encode($output, JSON_PRETTY_PRINT);

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.01618.43
8.3.50.0130.00718.07
8.3.40.0120.00318.87
8.3.30.0110.00418.63
8.3.20.0000.00819.32
8.3.10.0040.00423.52
8.3.00.0080.00023.35
8.2.180.0150.00618.16
8.2.170.0040.01122.96
8.2.160.0140.00021.05
8.2.150.0040.00424.18
8.2.140.0150.00324.66
8.2.130.0000.00720.52
8.2.120.0040.00426.35
8.2.110.0030.00622.18
8.2.100.0110.00017.91
8.2.90.0040.00420.42
8.2.80.0030.00617.97
8.2.70.0030.00518.05
8.2.60.0040.00418.03
8.2.50.0000.00817.50
8.2.40.0030.00519.25
8.2.30.0040.00421.16
8.2.20.0000.00818.05
8.2.10.0040.00418.15
8.2.00.0050.00219.50
8.1.280.0110.00425.92
8.1.270.0000.00823.67
8.1.260.0040.00426.35
8.1.250.0100.00328.09
8.1.240.0090.00320.66
8.1.230.0070.00420.86
8.1.220.0040.00417.78
8.1.210.0040.00418.85
8.1.200.0070.00717.47
8.1.190.0000.01017.23
8.1.180.0080.00018.10
8.1.170.0030.00517.62
8.1.160.0070.00018.87
8.1.150.0040.00418.84
8.1.140.0050.00319.03
8.1.130.0080.00320.20
8.1.120.0000.00717.39
8.1.110.0070.00017.42
8.1.100.0000.00717.46
8.1.90.0040.00417.45
8.1.80.0040.00417.46
8.1.70.0000.00717.52
8.1.60.0000.00817.59
8.1.50.0040.00417.52
8.1.40.0000.00717.40
8.1.30.0080.00017.48
8.1.20.0000.00717.65
8.1.10.0000.00717.56
8.1.00.0000.00817.57
8.0.300.0070.00020.05
8.0.290.0040.00416.63
8.0.280.0030.00318.44
8.0.270.0030.00316.73
8.0.260.0050.00318.45
8.0.250.0000.00616.96
8.0.240.0000.00816.99
8.0.230.0030.00316.96
8.0.220.0030.00516.90
8.0.210.0000.00716.87
8.0.200.0000.00716.94
8.0.190.0040.00316.84
8.0.180.0100.00716.85
8.0.170.0030.00516.91
8.0.160.0050.00316.78
8.0.150.0000.00716.87
8.0.140.0030.00316.88
8.0.130.0030.00313.27
8.0.120.0050.00216.84
8.0.110.0040.00416.82
8.0.100.0040.00416.79
8.0.90.0050.00216.76
8.0.80.0000.01816.87
8.0.70.0000.00716.88
8.0.60.0040.00417.00
8.0.50.0000.00816.84
8.0.30.0110.00717.08
8.0.20.0060.01417.40
8.0.10.0030.00516.81
8.0.00.0110.00816.82
7.4.330.0000.00515.55
7.4.320.0000.00716.61
7.4.300.0000.00616.49
7.4.290.0030.00716.63
7.4.280.0040.00416.38
7.4.270.0080.00016.42
7.4.260.0030.00316.57
7.4.250.0000.00716.46
7.4.240.0040.00416.52
7.4.230.0040.00416.53
7.4.220.0080.00016.44
7.4.210.0130.00316.57
7.4.200.0000.00716.68
7.4.160.0080.00916.52
7.4.140.0120.00617.86
7.4.130.0060.01216.45
7.4.120.0090.00816.50
7.4.110.0100.01316.62
7.4.100.0100.01316.69
7.4.90.0030.01516.55
7.4.80.0140.00719.39
7.4.70.0100.00716.68
7.4.60.0130.00916.60
7.4.50.0040.01216.38
7.4.40.0090.00916.48
7.4.00.0000.01315.11
7.3.330.0030.00313.25
7.3.320.0000.00613.03
7.3.310.0000.00716.29
7.3.300.0070.00016.34
7.3.290.0090.00616.37
7.3.280.0140.00516.34
7.3.260.0070.01016.44
7.3.240.0120.01016.40
7.3.230.0060.01116.50
7.3.210.0090.00916.21
7.3.200.0100.00716.31
7.3.190.0030.01316.54
7.3.180.0110.00816.54
7.3.170.0070.01316.65
7.3.160.0060.01116.32
7.2.330.0070.01016.38
7.2.320.0070.01116.68
7.2.310.0120.00916.64
7.2.300.0140.00416.72
7.2.290.0120.00916.77
7.2.80.0230.01014.77
7.2.70.0270.00714.80
7.2.60.0260.01215.03
7.2.50.0350.00714.65
7.2.40.0400.00414.83
7.2.30.0400.00014.88
7.2.20.0320.00914.87
7.2.10.0560.01014.67
7.2.00.1390.00614.89
7.1.200.0000.01515.95
7.1.190.0340.00313.93
7.1.180.0190.01313.87
7.1.170.0290.00713.79
7.1.160.0290.00913.52
7.1.150.0560.00613.73
7.1.140.0320.00713.82
7.1.130.0310.01213.48
7.1.120.0290.00613.77
7.1.110.0320.00613.65
7.1.100.0330.00313.94
7.1.90.0530.00713.53
7.1.80.0360.01013.65
7.1.70.0340.01013.81
7.1.60.0440.01032.00
7.1.50.0400.01331.66
7.1.40.0510.00331.72
7.1.30.0480.00631.85
7.1.20.0460.01031.81
7.1.10.0260.00613.59
7.1.00.0290.00914.02

preferences:
62.22 ms | 400 KiB | 5 Q