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: " . $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.0150.00616.13
8.3.50.0200.00922.11
8.3.40.0070.00718.98
8.3.30.0100.00719.23
8.3.20.0040.00420.35
8.3.10.0080.00023.66
8.3.00.0090.00019.56
8.2.180.0120.00916.75
8.2.170.0100.00722.96
8.2.160.0100.01020.43
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00421.10
8.2.110.0060.00322.13
8.2.100.0090.00621.17
8.2.90.0040.00419.21
8.2.80.0030.00517.97
8.2.70.0040.00417.75
8.2.60.0050.00318.05
8.2.50.0060.00318.07
8.2.40.0000.00918.22
8.2.30.0070.00018.32
8.2.20.0050.00317.81
8.2.10.0080.00019.89
8.2.00.0040.00417.67
8.1.280.0040.01425.92
8.1.270.0080.00023.84
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00323.80
8.1.230.0030.00719.08
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0000.00818.73
8.1.160.0020.00522.04
8.1.150.0000.00718.91
8.1.140.0030.00617.36
8.1.130.0030.00317.93
8.1.120.0070.00017.37
8.1.110.0000.00717.36
8.1.100.0050.00217.47
8.1.90.0100.00017.36
8.1.80.0000.00817.41
8.1.70.0070.00017.43
8.1.60.0000.00917.59
8.1.50.0080.00017.55
8.1.40.0040.00417.48
8.1.30.0030.00617.47
8.1.20.0000.00817.60
8.1.10.0000.00717.61
8.1.00.0050.00317.44
8.0.300.0070.00018.77
8.0.290.0030.00516.88
8.0.280.0030.00318.43
8.0.270.0080.00017.27
8.0.260.0030.00317.26
8.0.250.0030.00317.07
8.0.240.0040.00417.00
8.0.230.0030.00317.02
8.0.220.0070.00016.94
8.0.210.0000.00717.00
8.0.200.0040.00417.02
8.0.190.0030.00316.98
8.0.180.0030.00716.94
8.0.170.0050.00316.86
8.0.160.0000.00716.91
8.0.150.0040.00417.00
8.0.140.0000.00816.90
8.0.130.0060.00013.34
8.0.120.0040.00416.79
8.0.110.0040.00416.91
8.0.100.0000.00716.90
8.0.90.0000.00716.84
8.0.80.0090.00616.93
8.0.70.0040.00416.96
8.0.60.0050.00216.94
8.0.50.0030.00516.79
8.0.30.0130.00817.12
8.0.20.0150.00517.40
8.0.10.0000.00717.14
8.0.00.0090.00816.76
7.4.330.0000.00515.09
7.4.320.0000.00616.59
7.4.300.0030.00316.65
7.4.290.0000.00716.53
7.4.280.0070.00016.55
7.4.270.0000.00716.63
7.4.260.0000.01216.60
7.4.250.0030.00616.57
7.4.240.0080.00016.52
7.4.230.0030.00316.60
7.4.220.0030.01416.67
7.4.210.0030.01216.54
7.4.200.0070.00016.31
7.4.160.0090.00616.27
7.4.150.0140.01017.40
7.4.140.0120.00617.86
7.4.130.0110.00516.60
7.4.120.0120.00516.62
7.4.110.0230.00516.57
7.4.100.0120.00616.56
7.4.90.0080.00816.63
7.4.80.0080.01119.39
7.4.70.0040.01116.51
7.4.60.0130.00316.57
7.4.50.0000.00616.54
7.4.40.0130.00316.55
7.4.30.0090.00916.50
7.4.00.0060.00615.21
7.3.330.0030.00313.25
7.3.320.0000.00613.25
7.3.310.0070.00016.35
7.3.300.0000.00716.35
7.3.290.0000.01516.42
7.3.280.0100.01016.39
7.3.270.0060.01217.40
7.3.260.0060.01216.68
7.3.250.0070.01016.66
7.3.240.0150.00316.54
7.3.230.0130.01016.48
7.3.210.0150.00616.59
7.3.200.0130.00619.39
7.3.190.0030.01316.38
7.3.180.0080.00816.39
7.3.170.0120.00316.66
7.3.160.0060.01216.54
7.3.120.0100.00314.77
7.3.00.0040.00716.70
7.2.330.0080.01116.50
7.2.320.0120.00616.70
7.2.310.0110.00516.70
7.2.300.0030.01416.63
7.2.290.0120.00416.87
7.2.130.0070.01016.75
7.2.120.0060.00616.69
7.2.110.0110.00316.67
7.2.100.0040.00717.00
7.2.90.0040.01117.18
7.2.80.0070.00716.64
7.2.70.0110.00316.94
7.2.60.0150.00416.92
7.2.50.0090.00016.94
7.2.40.0000.01017.02
7.2.30.0080.00416.68
7.2.20.0070.00716.83
7.2.10.0130.00316.99
7.2.00.0070.00918.07
7.1.250.0040.01115.86
7.1.240.0000.00915.77
7.1.230.0060.00615.84
7.1.220.0130.00615.66
7.1.210.0000.01415.97
7.1.200.0080.00815.72
7.1.190.0100.00315.87
7.1.180.0140.00015.56
7.1.170.0070.01015.71
7.1.160.0090.00615.77
7.1.150.0070.00315.90
7.1.140.0100.00015.80
7.1.130.0000.01215.64
7.1.120.0100.01015.63
7.1.110.0030.00715.87
7.1.100.0070.00417.13
7.1.90.0030.00615.98
7.1.80.0060.00315.69
7.1.70.0090.00216.36
7.1.60.0090.00817.74
7.1.50.0060.00916.43
7.1.40.0070.00316.00
7.1.30.0060.00315.77
7.1.20.0060.00615.92
7.1.10.0040.00815.97
7.1.00.0060.04019.09
7.0.330.0060.00315.54
7.0.320.0000.01415.40
7.0.310.0090.00315.27
7.0.300.0040.01115.33
7.0.290.0030.00715.45
7.0.280.0090.00315.54
7.0.270.0000.01515.43
7.0.260.0090.00315.18
7.0.250.0070.00415.63
7.0.240.0070.00315.26
7.0.230.0040.00815.39
7.0.220.0040.00715.22
7.0.210.0030.00815.29
7.0.200.0160.00315.16
7.0.190.0100.00715.29
7.0.180.0000.01115.50
7.0.170.0070.00315.31
7.0.160.0040.01115.44
7.0.150.0080.00415.28
7.0.140.0000.04218.74
7.0.130.0030.01015.45
7.0.120.0000.00815.50
7.0.110.0050.00315.19
7.0.100.0080.00315.56
7.0.90.0000.01015.40
7.0.80.0030.00615.60
7.0.70.0060.00315.44
7.0.60.0100.04017.71
7.0.50.0070.04016.66
7.0.40.0030.04816.78
7.0.30.0250.03916.85
7.0.20.0070.03216.90
7.0.10.0080.04316.86
7.0.00.0030.03016.73
5.6.380.0040.01114.64
5.6.370.0030.00614.58
5.6.360.0030.01314.18
5.6.350.0000.01114.49
5.6.340.0120.00014.05
5.6.330.0070.00714.30
5.6.320.0070.00714.17
5.6.310.0040.00814.30
5.6.300.0030.01314.37
5.6.290.0060.00614.59
5.6.280.0050.03917.51
5.6.270.0070.00414.22
5.6.260.0030.00914.50
5.6.250.0040.01114.69
5.6.240.0090.00314.67
5.6.230.0100.00714.26
5.6.220.0040.00714.73
5.6.210.0050.02317.49
5.6.200.0050.04516.38
5.6.190.0140.03017.62
5.6.180.0120.04217.30
5.6.170.0150.05217.51
5.6.160.0100.04017.48
5.6.150.0080.04116.21
5.6.140.0070.02116.13
5.6.130.0070.03016.26
5.6.120.0050.03217.66
5.6.110.0050.03817.68
5.6.100.0070.05017.61
5.6.90.0050.04517.51
5.6.80.0030.04617.34
5.6.70.0000.01314.10
5.6.60.0060.00614.09
5.6.50.0060.00614.16
5.6.40.0060.00914.11
5.6.30.0070.00714.16
5.6.20.0030.00914.16
5.6.10.0060.00914.43
5.6.00.0100.00314.18
5.5.380.0040.00411.05
5.5.370.0000.00711.09
5.5.360.0000.00911.10
5.5.350.0040.01715.74
5.5.340.0060.04014.64
5.5.330.0070.02615.85
5.5.320.0120.04115.60
5.5.310.0120.02815.67
5.5.300.0070.02014.60
5.5.290.0080.03214.65
5.5.280.0030.05115.88
5.5.270.0100.04015.90
5.5.260.0020.04015.93
5.5.250.0070.03715.85
5.5.240.0120.02415.76
5.5.230.0050.00310.96
5.5.220.0030.00711.16
5.5.210.0000.01011.25
5.5.200.0030.00310.91
5.5.190.0030.00311.19
5.5.180.0000.00711.09
5.5.170.0040.00411.15
5.5.160.0040.00711.18
5.5.150.0030.00311.14
5.5.140.0060.00611.00
5.5.130.0000.00811.26
5.5.120.0080.00010.95
5.5.110.0030.00911.20
5.5.100.0060.00610.79
5.5.90.0060.00611.25
5.5.80.0080.00411.16
5.5.70.0030.00310.97
5.5.60.0060.00611.15
5.5.50.0040.00710.90
5.5.40.0060.00611.01
5.5.30.0110.00010.96
5.5.20.0070.00710.93
5.5.10.0030.00611.31
5.5.00.0030.00611.08
5.4.450.0280.03615.15
5.4.440.0260.03115.20
5.4.430.0430.02715.24
5.4.420.0530.02915.21
5.4.410.0480.03615.27
5.4.400.0460.03214.96
5.4.390.0300.03515.19
5.4.380.0130.02814.76
5.4.370.0070.03414.81
5.4.360.0130.02514.77
5.4.350.0170.03214.87
5.4.340.0160.02814.97
5.4.330.0060.00311.00
5.4.320.0060.02111.65
5.4.310.0060.02511.78
5.4.300.0050.02011.71
5.4.290.0080.01911.78
5.4.280.0060.01911.61
5.4.270.0070.02211.58
5.4.260.0040.02411.58
5.4.250.0020.02411.64
5.4.240.0060.02111.63
5.4.230.0070.01911.63
5.4.220.0070.01911.67
5.4.210.0050.01811.57
5.4.200.0040.02311.68
5.4.190.0060.02011.63
5.4.180.0060.01811.66
5.4.170.0010.02711.68
5.4.160.0050.02211.77
5.4.150.0050.02211.75
5.4.140.0040.02211.49
5.4.130.0050.02311.53
5.4.120.0040.02211.44
5.4.110.0060.02011.47
5.4.100.0060.02111.52
5.4.90.0060.02111.52
5.4.80.0020.02511.46
5.4.70.0050.02111.57
5.4.60.0050.01911.49
5.4.50.0070.01911.43
5.4.40.0060.02111.38
5.4.30.0050.02211.50
5.4.20.0040.02211.53
5.4.10.0060.01911.53
5.4.00.0070.02111.29
5.3.290.0050.02211.64
5.3.280.0050.02011.58
5.3.270.0050.02211.52
5.3.260.0040.02511.58
5.3.250.0030.02311.66
5.3.240.0030.02211.55
5.3.230.0070.01811.48
5.3.220.0050.02111.57
5.3.210.0070.02011.46
5.3.200.0040.02111.53
5.3.190.0080.02411.55
5.3.180.0050.02011.67
5.3.170.0020.02411.55
5.3.160.0060.02011.63
5.3.150.0040.02711.61
5.3.140.0060.02211.61
5.3.130.0040.02211.54
5.3.120.0080.02211.50
5.3.110.0080.01911.54
5.3.100.0050.02211.30
5.3.90.0020.02111.32
5.3.80.0030.02211.13
5.3.70.0050.02511.26
5.3.60.0050.01811.31
5.3.50.0040.02211.11
5.3.40.0060.02211.15
5.3.30.0040.02311.21
5.3.20.0070.02211.08
5.3.10.0040.02110.97
5.3.00.0070.01910.90
5.2.170.0040.0189.30
5.2.160.0060.0149.25
5.2.150.0040.0229.28
5.2.140.0060.0159.18
5.2.130.0040.0179.29
5.2.120.0020.0179.29
5.2.110.0040.0169.23
5.2.100.0050.0149.17
5.2.90.0070.0189.25
5.2.80.0030.0229.14
5.2.70.0040.0179.28
5.2.60.0020.0199.20
5.2.50.0060.0179.20
5.2.40.0060.0189.23
5.2.30.0040.0179.21
5.2.20.0050.0229.05
5.2.10.0060.0148.96
5.2.00.0020.0188.92
5.1.60.0020.0188.31
5.1.50.0040.0148.30
5.1.40.0020.0158.34
5.1.30.0050.0168.43
5.1.20.0020.0188.60
5.1.10.0020.0168.43
5.1.00.0050.0148.36
5.0.50.0040.0127.49
5.0.40.0080.0087.41
5.0.30.0040.0167.32
5.0.20.0040.0137.31
5.0.10.0040.0117.29
5.0.00.0030.0217.29
4.4.90.0040.0116.55
4.4.80.0030.0106.54
4.4.70.0040.0116.54
4.4.60.0040.0086.54
4.4.50.0040.0076.55
4.4.40.0030.0156.52
4.4.30.0020.0106.54
4.4.20.0050.0086.59
4.4.10.0050.0086.59
4.4.00.0030.0146.54
4.3.110.0040.0096.50
4.3.100.0020.0116.50
4.3.90.0020.0116.48
4.3.80.0020.0136.45
4.3.70.0010.0106.48
4.3.60.0010.0116.48
4.3.50.0050.0076.48
4.3.40.0040.0136.43
4.3.30.0040.0085.82
4.3.20.0020.0105.81
4.3.10.0020.0125.79
4.3.00.0300.01012.24

preferences:
37.95 ms | 401 KiB | 5 Q