3v4l.org

run code in 300+ PHP versions simultaneously
<?php $project_archives = array( 'Bridge Work' => array( array( 'Name' => 'NJ Trunpike_Bridge Repair Work', 'Location' => 'New Jersey', 'State' => 'New Jersey' ), array( 'Name' => 'Honoapiilani Highway Bridge Truss', 'Location' => 'Maui', 'State' => 'Hawai' ), array( 'Name' => 'BlueCross Blueshield of Tennessee (Bridge)', 'Location' => 'Memphis', 'State' => 'Tennessee' ), array( 'Name' => 'Henderson Center Connector Bridge', 'Location' => 'Coquitlam', 'State' => 'British Columbia' ), ), 'Educational' => array( array( 'Name' => 'RTI TASS Complex Admin Bldg', 'Location' => 'Bluffdale', 'State' => 'Utah' ), array( 'Name' => 'Auburn High School', 'Location' => 'Auburn', 'State' => 'Washington' ), array( 'Name' => 'Reed College', 'Location' => 'Portland', 'State' => 'Oregon' ), array( 'Name' => 'Shorewood High School', 'Location' => 'Shoreline', 'State' => 'Washington' ), ) ); $testing = array(); foreach($project_archives['Bridge Work'] as $key=>$value) { $testing[$key]=$value['State']; } asort($testing); print_r($testing); $a=array(); foreach($testing as $key=>$value) { $a = $project_archives['Bridge Work'][$key]; } print_r($a);

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.0030.01716.50
8.3.50.0120.00521.95
8.3.40.0000.01518.75
8.3.30.0070.00718.91
8.3.20.0000.00720.29
8.3.10.0040.00421.90
8.3.00.0060.00319.22
8.2.180.0110.00718.41
8.2.170.0100.00722.96
8.2.160.0080.00520.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.13
8.2.110.0030.00622.26
8.2.100.0080.00417.97
8.2.90.0060.00319.33
8.2.80.0030.00518.03
8.2.70.0090.00017.50
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0060.00320.07
8.2.30.0040.00418.00
8.2.20.0000.01017.68
8.2.10.0040.00418.13
8.2.00.0000.00817.68
8.1.280.0090.00925.92
8.1.270.0040.00423.96
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0050.00523.73
8.1.230.0040.00719.01
8.1.220.0050.00317.79
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0050.00317.42
8.1.180.0030.00619.10
8.1.170.0030.00618.69
8.1.160.0040.00422.01
8.1.150.0000.00818.64
8.1.140.0070.00317.45
8.1.130.0030.00317.75
8.1.120.0050.00317.35
8.1.110.0050.00317.54
8.1.100.0080.00017.48
8.1.90.0050.00217.48
8.1.80.0030.00317.43
8.1.70.0030.00317.35
8.1.60.0040.00417.58
8.1.50.0040.00417.57
8.1.40.0040.00417.51
8.1.30.0050.00317.52
8.1.20.0060.00317.64
8.1.10.0000.00817.55
8.1.00.0040.00417.52
8.0.300.0060.00318.77
8.0.290.0050.00217.18
8.0.280.0030.00318.40
8.0.270.0050.00217.28
8.0.260.0000.00617.27
8.0.250.0000.00716.84
8.0.240.0000.00716.86
8.0.230.0030.00316.88
8.0.220.0070.00016.95
8.0.210.0040.00416.94
8.0.200.0000.00716.92
8.0.190.0040.00416.98
8.0.180.0030.00616.88
8.0.170.0030.00516.91
8.0.160.0080.00016.73
8.0.150.0000.00816.82
8.0.140.0030.00516.91
8.0.130.0000.00613.36
8.0.120.0000.00816.80
8.0.110.0040.00416.89
8.0.100.0040.00416.84
8.0.90.0070.00016.79
8.0.80.0100.01016.95
8.0.70.0080.00016.84
8.0.60.0040.00416.80
8.0.50.0000.00716.90
8.0.30.0110.00816.94
8.0.20.0100.01017.40
8.0.10.0000.00716.91
8.0.00.0060.01316.67
7.4.330.0000.00515.07
7.4.320.0000.00716.55
7.4.300.0070.00016.59
7.4.290.0000.00716.68
7.4.280.0050.00316.51
7.4.270.0060.00316.54
7.4.260.0030.00316.49
7.4.250.0030.00316.38
7.4.240.0030.00416.62
7.4.230.0070.00016.71
7.4.220.0070.01116.47
7.4.210.0100.00516.58
7.4.200.0060.00316.45
7.4.190.0030.00316.65
7.4.160.0090.00616.41
7.4.150.0160.00317.40
7.4.140.0040.01517.86
7.4.130.0080.00816.62
7.4.120.0090.00916.41
7.4.110.0110.01116.50
7.4.100.0140.00416.43
7.4.90.0100.01316.66
7.4.80.0290.03619.39
7.4.70.0160.00616.55
7.4.60.0100.00716.43
7.4.50.0040.00416.39
7.4.40.0060.00922.77
7.4.30.0100.00516.28
7.4.00.0030.01214.68
7.3.330.0020.00213.09
7.3.320.0000.00613.17
7.3.310.0000.00716.30
7.3.300.0000.00616.23
7.3.290.0140.00016.31
7.3.280.0120.00516.32
7.3.270.0100.00617.40
7.3.260.0130.00816.69
7.3.250.0110.01216.34
7.3.240.0120.01116.78
7.3.230.0100.01316.51
7.3.210.0140.00316.30
7.3.200.0130.01019.39
7.3.190.0140.01016.48
7.3.180.0090.00616.57
7.3.170.0030.01216.27
7.3.160.0090.00616.38
7.3.120.0030.00914.91
7.2.330.0070.01516.80
7.2.320.0030.01316.73
7.2.310.0130.01016.47
7.2.300.0080.00816.59
7.2.290.0100.01316.68
7.2.00.0000.01219.38
7.1.100.0000.01218.24
7.1.70.0000.01016.95
7.1.60.0100.01019.46
7.1.50.0130.00916.87
7.1.00.0000.07722.48
7.0.200.0040.00416.97
7.0.140.0070.07322.08
7.0.60.0030.06719.98
7.0.50.0100.07717.88
7.0.40.0030.05720.19
7.0.30.0300.07320.06
7.0.20.0170.04020.32
7.0.10.0030.04720.26
7.0.00.0100.05020.24
5.6.280.0100.06721.11
5.6.210.0030.04020.67
5.6.200.0070.08318.23
5.6.190.0030.04320.34
5.6.180.0400.03720.75
5.6.170.0270.03720.71
5.6.160.0100.05020.46
5.6.150.0100.03318.19
5.6.140.0100.03718.21
5.6.130.0000.04718.27
5.6.120.0100.03321.04
5.6.110.0030.08021.11
5.6.100.0030.05720.98
5.6.90.0030.08321.00
5.6.80.0070.07020.38
5.6.70.4400.04020.36
5.5.350.0170.07720.38
5.5.340.0100.07017.96
5.5.330.0070.08720.14
5.5.320.0300.08020.27
5.5.310.0170.05020.34
5.5.300.0030.05017.95
5.5.290.0130.07017.98
5.5.280.0100.05320.86
5.5.270.0070.07020.80
5.5.260.0100.04020.77
5.5.250.0130.05020.80
5.5.240.0270.07720.37
5.4.450.0730.06319.48
5.4.440.0800.05319.36
5.4.430.0700.06319.57
5.4.420.0200.04319.56
5.4.410.0700.06719.32
5.4.400.0570.05719.13
5.4.390.0830.05319.04
5.4.380.0300.05018.50
5.4.370.0270.06018.70
5.4.360.0200.05718.48
5.4.350.0270.05718.54
5.4.340.0270.05718.70
5.4.320.0040.04212.50
5.4.310.0100.05312.50
5.4.300.0030.04012.50
5.4.290.0040.06412.48
5.4.280.0110.04612.38
5.4.270.0120.05312.38
5.4.260.0080.04412.38
5.4.250.0120.03512.38
5.4.240.0040.04112.38
5.4.230.0090.03712.37
5.4.220.0100.03912.37
5.4.210.0100.03712.37
5.4.200.0050.04412.37
5.4.190.0100.03712.36
5.4.180.0140.04112.37
5.4.170.0150.05012.38
5.4.160.0120.06512.38
5.4.150.0100.06612.37
5.4.140.0070.05612.05
5.4.130.0080.04112.04
5.4.120.0090.05012.00
5.4.110.0090.03811.99
5.4.100.0080.04012.00
5.4.90.0110.03611.99
5.4.80.0050.04312.00
5.4.70.0080.03611.99
5.4.60.0100.04212.00
5.4.50.0080.04411.99
5.4.40.0090.04811.98
5.4.30.0100.04611.98
5.4.20.0070.05111.98
5.4.10.0110.05011.98
5.4.00.0070.04011.47
5.3.290.0070.04312.80
5.3.280.0100.04012.71
5.3.270.0090.05812.72
5.3.260.0150.05812.72
5.3.250.0080.06012.72
5.3.240.0090.04112.72
5.3.230.0070.04112.71
5.3.220.0100.04212.68
5.3.210.0120.03712.68
5.3.200.0090.05312.68
5.3.190.0060.04112.68
5.3.180.0080.03812.67
5.3.170.0110.03712.67
5.3.160.0150.04512.68
5.3.150.0080.04212.68
5.3.140.0050.03912.66
5.3.130.0060.04112.66
5.3.120.0070.04012.66
5.3.110.0090.03812.65
5.3.100.0080.04012.12
5.3.90.0130.04812.11
5.3.80.0100.03912.09
5.3.70.0080.04512.09
5.3.60.0080.03612.08
5.3.50.0080.03912.03
5.3.40.0090.03512.02
5.3.30.0080.03611.98
5.3.20.0120.04011.76
5.3.10.0130.05111.73
5.3.00.0110.05911.72
5.2.170.0070.0409.22
5.2.160.0070.0429.22
5.2.150.0150.0379.23
5.2.140.0060.0339.22
5.2.130.0070.0349.18
5.2.120.0100.0469.18
5.2.110.0090.0369.19
5.2.100.0090.0449.18
5.2.90.0060.0459.18
5.2.80.0080.0439.18
5.2.70.0100.0389.18
5.2.60.0140.0719.13
5.2.50.0160.0509.10
5.2.40.0030.0449.08
5.2.30.0090.0409.05
5.2.20.0070.0419.04
5.2.10.0070.0408.95
5.2.00.0070.0428.81
5.1.60.0050.0418.08
5.1.50.0070.0378.08
5.1.40.0060.0378.06
5.1.30.0060.0288.41
5.1.20.0050.0288.43
5.1.10.0110.0308.16
5.1.00.0120.0338.15
5.0.50.0080.0276.63
5.0.40.0050.0206.49
5.0.30.0060.0416.31
5.0.20.0080.0286.28
5.0.10.0080.0266.25
5.0.00.0070.0436.26
4.4.90.0080.0324.78
4.4.80.0050.0344.75
4.4.70.0080.0254.76
4.4.60.0050.0234.75
4.4.50.0040.0254.77
4.4.40.0060.0294.71
4.4.30.0050.0164.76
4.4.20.0030.0174.84
4.4.10.0050.0174.85
4.4.00.0020.0324.76
4.3.110.0060.0224.67
4.3.100.0070.0234.66
4.3.90.0080.0184.63
4.3.80.0040.0384.58
4.3.70.0050.0224.63
4.3.60.0020.0264.63
4.3.50.0070.0204.63
4.3.40.0100.0574.54
4.3.30.0030.0333.32
4.3.20.0040.0223.29
4.3.10.0100.0473.25
4.3.00.0270.01710.31

preferences:
43.56 ms | 401 KiB | 5 Q