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 ."\n"; } 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.0090.00916.74
8.3.50.0240.00521.99
8.3.40.0150.00018.71
8.3.30.0060.00919.05
8.3.20.0080.00020.21
8.3.10.0000.00823.52
8.3.00.0080.00019.56
8.2.180.0060.00916.50
8.2.170.0140.00722.96
8.2.160.0130.00020.38
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.92
8.2.110.0060.00321.92
8.2.100.0060.00620.40
8.2.90.0060.00319.17
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0000.00718.16
8.2.30.0050.00318.37
8.2.20.0000.00817.78
8.2.10.0030.00618.06
8.2.00.0000.00717.81
8.1.280.0110.00725.92
8.1.270.0040.01323.91
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.01
8.1.230.0070.00319.16
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0000.00821.99
8.1.150.0040.00418.76
8.1.140.0040.00417.42
8.1.130.0000.00817.82
8.1.120.0040.00417.32
8.1.110.0040.00417.50
8.1.100.0000.00717.50
8.1.90.0000.00717.42
8.1.80.0000.00717.46
8.1.70.0070.00017.40
8.1.60.0030.00617.59
8.1.50.0000.00717.52
8.1.40.0060.00317.57
8.1.30.0030.00617.61
8.1.20.0000.00817.65
8.1.10.0060.00317.44
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0030.00318.46
8.0.270.0030.00317.17
8.0.260.0030.00317.25
8.0.250.0020.00516.92
8.0.240.0050.00316.96
8.0.230.0030.00316.85
8.0.220.0040.00416.94
8.0.210.0000.00716.80
8.0.200.0030.00316.87
8.0.190.0050.00216.96
8.0.180.0040.00416.79
8.0.170.0050.00316.88
8.0.160.0040.00416.86
8.0.150.0000.00716.86
8.0.140.0040.00416.86
8.0.130.0000.00713.28
8.0.120.0060.00316.86
8.0.110.0040.00416.87
8.0.100.0040.00416.74
8.0.90.0030.00516.72
8.0.80.0080.00716.93
8.0.70.0040.00416.89
8.0.60.0070.00016.93
8.0.50.0000.00816.90
8.0.30.0080.01217.26
8.0.20.0100.00817.40
8.0.10.0000.00716.87
8.0.00.0120.01916.69
7.4.330.0020.00215.15
7.4.320.0030.00316.61
7.4.300.0000.00716.43
7.4.290.0050.00316.45
7.4.280.0000.00716.56
7.4.270.0030.00316.64
7.4.260.0040.00816.63
7.4.250.0000.00716.56
7.4.240.0030.00316.51
7.4.230.0080.00016.62
7.4.220.0090.00916.70
7.4.210.0120.00316.58
7.4.200.0030.00316.63
7.4.160.0040.01216.47
7.4.150.0100.00717.40
7.4.140.0120.00617.86
7.4.130.0100.00916.51
7.4.120.0040.01316.34
7.4.110.0120.00616.55
7.4.100.0160.00616.56
7.4.90.0140.00316.61
7.4.80.0050.01819.39
7.4.70.0100.00616.52
7.4.60.0090.00616.45
7.4.50.0040.00416.18
7.4.40.0130.00316.59
7.4.30.0130.00616.45
7.4.00.0100.00814.87
7.3.330.0000.00613.24
7.3.320.0030.00313.07
7.3.310.0000.00716.19
7.3.300.0000.00716.34
7.3.290.0120.00316.39
7.3.280.0070.01016.33
7.3.270.0120.00617.40
7.3.260.0110.00816.52
7.3.250.0110.00816.38
7.3.240.0000.01916.39
7.3.230.0060.01116.64
7.3.210.0120.00416.33
7.3.200.0060.01319.39
7.3.190.0130.00316.66
7.3.180.0170.00016.62
7.3.170.0120.00316.52
7.3.160.0060.00916.39
7.3.120.0070.00914.88
7.3.110.0120.00315.07
7.3.100.0110.00714.64
7.3.90.0070.00714.95
7.3.80.0110.00014.70
7.3.70.0060.00614.91
7.3.60.0110.00414.92
7.3.50.0030.01214.57
7.3.40.0040.00714.61
7.3.30.0100.00714.95
7.3.20.0080.00616.76
7.3.10.0000.01316.76
7.3.00.0140.00016.49
7.2.330.0110.00716.75
7.2.320.0120.00616.68
7.2.310.0060.01116.68
7.2.300.0060.01016.36
7.2.290.0100.00616.54
7.2.250.0100.00614.95
7.2.240.0000.01814.97
7.2.230.0030.01315.03
7.2.220.0090.00314.90
7.2.210.0060.00615.30
7.2.200.0070.00715.19
7.2.190.0070.00714.98
7.2.180.0110.00415.09
7.2.170.0030.00915.18
7.1.330.0060.01015.53
7.1.320.0100.00315.68
7.1.310.0100.00316.03
7.1.300.0070.00715.84
7.1.290.0090.00015.86
7.1.280.0060.00615.73
7.1.270.0070.00715.84
7.1.260.0030.01015.57
7.1.100.0000.01018.06
7.1.70.0000.01017.25
7.1.60.0090.01319.70
7.1.50.0090.01517.04
7.1.00.0000.07722.30
7.0.200.0740.00314.89
7.0.140.0070.07022.00
7.0.60.0200.05321.75
7.0.50.0070.08317.86
7.0.40.0200.04320.08
7.0.30.0500.05320.18
7.0.20.0230.08020.33
7.0.10.0170.06720.11
7.0.00.0100.07320.16
5.6.280.0030.07321.09
5.6.210.0000.07020.45
5.6.200.0070.07718.12
5.6.190.0130.07720.45
5.6.180.0300.08320.64
5.6.170.0400.05020.61
5.6.160.0170.05320.71
5.6.150.0070.08318.14
5.6.140.0030.08318.11
5.6.130.0000.07318.18
5.6.120.0200.07021.02
5.6.110.0100.09020.95
5.6.100.0130.07721.13
5.6.90.0000.08020.96
5.6.80.0030.07020.38
5.5.350.0070.07720.39
5.5.340.0200.07017.92
5.5.330.0030.04020.32
5.5.320.0230.06320.25
5.5.310.0300.07320.33
5.5.300.0070.09017.91
5.5.290.0100.07718.02
5.5.280.0130.04020.97
5.5.270.0170.07020.76
5.5.260.0030.05720.79
5.5.250.0030.04720.58
5.5.240.0030.06320.10
5.4.450.0330.07019.59
5.4.440.0300.06319.54
5.4.430.0170.04319.40
5.4.420.0300.07319.27
5.4.410.0370.04019.45
5.4.400.0200.05318.81
5.4.390.0200.08018.91
5.4.380.0300.05319.18
5.4.370.0230.07719.10
5.4.360.0230.06719.21
5.4.350.0200.04019.22
5.4.340.0230.06018.81
5.4.320.0270.07719.25
5.4.310.0270.07319.08
5.4.300.0270.07018.91
5.4.290.0270.05718.91
5.4.280.0330.06318.79
5.4.270.0200.05319.09
5.4.260.0200.05318.94
5.4.250.0230.07319.08
5.4.240.0200.08019.05
5.4.230.0270.07018.92
5.4.220.0270.03019.05
5.4.210.0270.04318.91
5.4.200.0230.05019.19
5.4.190.0170.03718.89
5.4.180.0200.04319.23
5.4.170.0200.03319.05
5.4.160.0230.03719.07
5.4.150.0170.03718.77
5.4.140.0230.05316.29
5.4.130.0330.04316.29
5.4.120.0230.06716.44
5.4.110.0330.04716.41
5.4.100.0230.07716.20
5.4.90.0200.04316.39
5.4.80.0230.03716.32
5.4.70.0270.04016.48
5.4.60.0370.04316.36
5.4.50.0300.06716.40
5.4.40.0230.07016.17
5.4.30.0270.06016.52
5.4.20.0130.04716.36
5.4.10.0430.06016.19
5.4.00.0130.04315.76
5.3.290.0230.06014.63
5.3.280.0200.06314.43
5.3.270.0170.04314.65
5.3.260.0130.04714.65
5.3.250.0270.06714.58
5.3.240.0170.06314.70
5.3.230.0300.06014.64
5.3.220.0230.06714.39
5.3.210.0370.05714.59
5.3.200.0300.03714.51
5.3.190.0230.07314.47
5.3.180.0400.04714.51
5.3.170.0200.04314.56
5.3.160.0230.07314.40
5.3.150.0300.04014.41
5.3.140.0270.07314.50
5.3.130.0270.07014.59
5.3.120.0300.05014.50
5.3.110.0200.04714.50
5.3.100.0200.03713.88
5.3.90.0300.05314.05
5.3.80.0230.06013.89
5.3.70.0230.05713.80
5.3.60.0270.06013.91
5.3.50.0170.08013.75
5.3.40.0200.06313.99
5.3.30.0230.05713.86
5.3.20.0270.06313.74
5.3.10.0270.05713.70
5.3.00.0270.04713.61
5.2.170.0230.04712.11
5.2.160.0230.06312.11
5.2.150.0270.05312.11
5.2.140.0200.04312.11
5.2.130.0200.06012.11
5.2.120.0200.06012.11
5.2.110.0230.05712.11
5.2.100.0130.05712.11
5.2.90.0230.05312.11
5.2.80.0170.06312.11
5.2.70.0170.04012.11
5.2.60.0230.05712.11
5.2.50.0170.04712.11
5.2.40.0200.05312.11
5.2.30.0130.03312.11
5.2.20.0130.06312.11
5.2.10.0200.04712.11
5.2.00.0200.04012.11
5.1.60.0170.03012.11
5.1.50.0200.05012.11
5.1.40.0170.04012.11
5.1.30.0170.03312.11
5.1.20.0170.05312.11
5.1.10.0230.03012.11
5.1.00.0170.05012.11
5.0.50.0100.04712.11
5.0.40.0130.02012.11
5.0.30.0100.04712.11
5.0.20.0100.04312.11
5.0.10.0100.04012.11
5.0.00.0070.06312.11
4.4.90.0070.02312.11
4.4.80.0070.03712.11
4.4.70.0030.03312.11
4.4.60.0100.03312.11
4.4.50.0130.03012.11
4.4.40.0100.02312.11
4.4.30.0200.02712.11
4.4.20.0070.02012.11
4.4.10.0100.01712.11
4.4.00.0100.05312.11
4.3.110.0070.02312.11
4.3.100.0100.02312.11
4.3.90.0100.03312.11
4.3.80.0100.04712.11
4.3.70.0070.03712.11
4.3.60.0130.03012.11
4.3.50.0100.02712.11
4.3.40.0170.04312.11
4.3.30.0100.03012.11
4.3.20.0030.03712.11
4.3.10.0070.02012.11
4.3.00.0030.02712.11

preferences:
38.32 ms | 401 KiB | 5 Q