3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array (array('name'=> "harold", 'age'=> 24),array('name'=> "sonia", 'age'=> 25),array('name'=> "isaiah", 'age'=> 5),); $j = 1; $min_result = array(); for($i=0; $i<count($test); $i++){ if($test[$i]['age'] < $test[$j]['age']){ $min_result = $test[$i]; echo "min result is: " . print_r($min_result) . "and $i is currently: ". $i . " and $j is currently: " . $j; } else{ $min_result = $test[$j]; $j++; } } var_dump($min_result) ?>

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.0100.00716.49
8.3.50.0240.00722.04
8.3.40.0090.00618.71
8.3.30.0120.00318.86
8.3.20.0060.00320.34
8.3.10.0040.00423.65
8.3.00.0030.00619.69
8.2.180.0070.00716.63
8.2.170.0140.00322.96
8.2.160.0040.01620.41
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.87
8.2.110.0040.00721.98
8.2.100.0060.00617.97
8.2.90.0030.00517.75
8.2.80.0040.00418.78
8.2.70.0030.00617.63
8.2.60.0000.00817.50
8.2.50.0080.00017.55
8.2.40.0000.00818.34
8.2.30.0040.00418.38
8.2.20.0000.00717.63
8.2.10.0050.00318.05
8.2.00.0000.00717.85
8.1.280.0090.00625.92
8.1.270.0060.00323.79
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0050.00523.97
8.1.230.0030.00719.21
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0050.00318.64
8.1.160.0040.00421.95
8.1.150.0000.00718.80
8.1.140.0000.00817.45
8.1.130.0030.00317.82
8.1.120.0040.00417.46
8.1.110.0040.00417.47
8.1.100.0000.00717.45
8.1.90.0070.00317.47
8.1.80.0040.00417.38
8.1.70.0030.00317.38
8.1.60.0080.00017.54
8.1.50.0060.00317.40
8.1.40.0000.00817.54
8.1.30.0040.00417.64
8.1.20.0000.00817.57
8.1.10.0000.00817.57
8.1.00.0080.00017.52
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0000.00817.26
8.0.260.0030.00317.26
8.0.250.0000.00716.93
8.0.240.0040.00416.85
8.0.230.0000.00716.96
8.0.220.0000.00716.88
8.0.210.0000.00716.83
8.0.200.0000.00616.97
8.0.190.0030.00316.94
8.0.180.0040.00816.81
8.0.170.0000.00716.81
8.0.160.0030.00516.77
8.0.150.0000.00816.82
8.0.140.0060.00616.79
8.0.130.0030.00313.39
8.0.120.0000.00816.75
8.0.110.0070.00016.77
8.0.100.0070.00017.01
8.0.90.0030.00316.78
8.0.80.0060.00916.77
8.0.70.0070.00016.77
8.0.60.0080.00016.82
8.0.50.0070.00016.75
8.0.30.0120.01017.24
8.0.20.0060.01417.40
8.0.10.0050.00317.04
8.0.00.0080.01016.92
7.4.330.0000.00515.03
7.4.320.0000.00716.66
7.4.300.0030.00316.64
7.4.290.0030.00316.54
7.4.280.0070.00016.65
7.4.270.0030.00316.64
7.4.260.0060.00616.50
7.4.250.0030.00316.61
7.4.240.0020.00616.57
7.4.230.0030.00316.69
7.4.220.0100.00716.59
7.4.210.0030.01616.56
7.4.200.0070.00016.27
7.4.160.0090.00616.71
7.4.150.0140.00617.40
7.4.140.0140.00617.86
7.4.130.0060.00916.44
7.4.120.0110.00616.56
7.4.110.0110.01216.65
7.4.100.0140.00516.63
7.4.90.0140.00316.61
7.4.80.0140.00719.39
7.4.70.0080.00816.50
7.4.60.0040.01216.43
7.4.50.0000.00416.52
7.4.40.0040.01316.43
7.4.30.0110.00816.59
7.4.00.0100.00314.99
7.3.330.0070.00013.24
7.3.320.0040.00413.19
7.3.310.0030.00316.48
7.3.300.0080.00016.33
7.3.290.0110.00716.43
7.3.280.0060.01516.35
7.3.270.0090.00917.40
7.3.260.0130.00416.57
7.3.250.0080.00916.51
7.3.240.0090.00916.33
7.3.230.0040.01216.41
7.3.210.0060.01016.50
7.3.200.0090.00619.39
7.3.190.0100.00716.45
7.3.180.0180.00416.47
7.3.170.0050.01116.46
7.3.160.0130.00316.29
7.3.120.0090.00614.66
7.3.10.0060.00616.70
7.3.00.0040.00816.70
7.2.330.0070.01716.77
7.2.320.0100.00616.61
7.2.310.0090.00916.87
7.2.300.0070.01016.49
7.2.290.0080.00816.86
7.2.130.0030.00616.99
7.2.120.0030.01016.87
7.2.110.0060.01017.06
7.2.100.0040.00816.98
7.2.90.0100.00716.98
7.2.80.0070.00417.16
7.2.70.0030.00617.05
7.2.60.0000.01217.14
7.2.50.0080.00816.92
7.2.40.0090.00916.93
7.2.30.0080.00817.15
7.2.20.0030.01017.10
7.2.10.0060.00616.95
7.2.00.0070.00618.16
7.1.250.0030.00915.92
7.1.100.0000.01717.91
7.1.70.0040.00817.01
7.1.60.0070.01419.70
7.1.50.0030.02017.01
7.1.00.0070.07022.51
7.0.200.0370.00314.93
7.0.140.0030.07321.99
7.0.60.0030.04019.92
7.0.50.0100.08317.89
7.0.40.0200.07720.14
7.0.30.0200.06720.33
7.0.20.0270.04020.16
7.0.10.0230.07320.17
7.0.00.0130.05020.09
5.6.280.0070.07020.86
5.6.210.0130.08320.47
5.6.200.0100.07718.25
5.6.190.0170.08020.33
5.6.180.0070.07720.63
5.6.170.0370.08020.41
5.6.160.0030.04320.62
5.6.150.0130.07718.18
5.6.140.0170.07018.15
5.6.130.0030.05718.18
5.6.120.0070.08320.88
5.6.110.0170.07320.96
5.6.100.0030.08720.98
5.6.90.0100.06320.87
5.6.80.0230.06320.43
5.6.70.3030.03320.47
5.5.350.0000.04020.46
5.5.340.0170.05318.00
5.5.330.0100.03320.08
5.5.320.0330.04320.29
5.5.310.0270.06020.50
5.5.300.0070.08017.89
5.5.290.0130.07017.96
5.5.280.0170.04720.79
5.5.270.0100.05020.96
5.5.260.0070.03720.86
5.5.250.0000.04320.61
5.5.240.0070.08020.13
5.4.450.0630.04319.55
5.4.440.0330.04019.57
5.4.430.0230.04319.41
5.4.420.0170.03719.57
5.4.410.0200.04719.26
5.4.400.0200.04019.13
5.4.390.0330.04719.09
5.4.380.0170.05018.69
5.4.370.0100.05718.58
5.4.360.0230.05718.58
5.4.350.0070.06018.71
5.4.340.0070.05718.46
5.4.320.0070.04212.46
5.4.310.0080.03512.45
5.4.300.0140.02912.45
5.4.290.0110.03212.45
5.4.280.0100.03112.35
5.4.270.0060.03612.35
5.4.260.0030.04012.35
5.4.250.0080.03512.35
5.4.240.0040.03812.35
5.4.230.0040.03912.34
5.4.220.0070.03512.34
5.4.210.0050.03712.34
5.4.200.0030.04112.34
5.4.190.0040.03912.34
5.4.180.0080.03412.34
5.4.170.0060.03612.35
5.4.160.0060.03612.34
5.4.150.0050.03712.34
5.4.140.0060.03612.03
5.4.130.0060.03512.01
5.4.120.0060.03511.97
5.4.110.0020.03911.97
5.4.100.0070.03411.96
5.4.90.0100.03311.97
5.4.80.0070.03611.97
5.4.70.0050.03611.96
5.4.60.0040.03711.96
5.4.50.0070.03411.97
5.4.40.0040.03711.95
5.4.30.0040.03811.95
5.4.20.0060.03511.95
5.4.10.0080.03211.95
5.4.00.0050.03711.44
5.3.290.0090.04312.80
5.3.280.0070.03712.71
5.3.270.0060.04012.73
5.3.260.0040.04112.72
5.3.250.0080.03512.72
5.3.240.0080.03612.71
5.3.230.0090.03512.71
5.3.220.0040.03912.68
5.3.210.0090.03612.68
5.3.200.0090.03412.68
5.3.190.0040.04012.68
5.3.180.0130.04512.67
5.3.170.0060.03812.67
5.3.160.0050.03812.67
5.3.150.0060.03912.68
5.3.140.0040.03912.66
5.3.130.0050.04212.66
5.3.120.0040.04212.66
5.3.110.0080.03812.65
5.3.100.0070.03612.12
5.3.90.0060.03812.08
5.3.80.0030.04012.07
5.3.70.0060.03812.07
5.3.60.0070.03512.06
5.3.50.0070.03612.00
5.3.40.0050.03812.00
5.3.30.0050.03611.95
5.3.20.0070.03311.72
5.3.10.0070.03311.69
5.3.00.0090.03311.68
5.2.170.0050.0309.18
5.2.160.0070.0279.18
5.2.150.0040.0319.18
5.2.140.0060.0299.18
5.2.130.0050.0299.14
5.2.120.0070.0279.14
5.2.110.0040.0309.15
5.2.100.0060.0279.14
5.2.90.0050.0299.14
5.2.80.0060.0299.14
5.2.70.0050.0439.14
5.2.60.0050.0299.09
5.2.50.0080.0279.06
5.2.40.0040.0299.03
5.2.30.0050.0299.02
5.2.20.0060.0289.01
5.2.10.0040.0298.95
5.2.00.0040.0308.80
5.1.60.0070.0218.09
5.1.50.0020.0278.09
5.1.40.0050.0248.07
5.1.30.0060.0248.42
5.1.20.0050.0338.44
5.1.10.0050.0328.16
5.1.00.0050.0268.17
5.0.50.0030.0226.64
5.0.40.0040.0196.50
5.0.30.0020.0346.32
5.0.20.0050.0236.29
5.0.10.0030.0206.26
5.0.00.0040.0296.25
4.4.90.0040.0144.78
4.4.80.0030.0234.75
4.4.70.0030.0224.75
4.4.60.0030.0194.76
4.4.50.0060.0224.77
4.4.40.0010.0324.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0050.0234.85
4.4.00.0030.0244.76
4.3.110.0030.0164.67
4.3.100.0040.0144.66
4.3.90.0050.0124.64
4.3.80.0040.0324.58
4.3.70.0040.0124.63
4.3.60.0020.0154.63
4.3.50.0050.0194.63
4.3.40.0030.0234.54
4.3.30.0020.0163.31
4.3.20.0040.0243.28
4.3.10.0040.0133.24
4.3.00.0030.01743.92

preferences:
48 ms | 400 KiB | 5 Q