3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cmp($a, $b) { return strcmp($a["fruit"], $b["fruit"]); } $fruits[0]["fruit"] = "lemons"; $fruits[1]["fruit"] = "apples"; $fruits[2]["fruit"] = "grapes"; usort($fruits, "cmp"); while (list($key, $value) = each($fruits)) { echo "\$fruits[$key]: " . $value["fruit"] . "\n"; } ?>

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.0170.00316.63
8.3.50.0100.00716.11
8.3.40.0060.00918.91
8.3.30.0110.00418.84
8.3.20.0040.00420.04
8.3.10.0030.00623.66
8.3.00.0070.00021.92
8.2.180.0110.00416.50
8.2.170.0210.00022.96
8.2.160.0210.00020.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.75
8.2.120.0000.00826.35
8.2.110.0030.00620.97
8.2.100.0080.00417.80
8.2.90.0070.00019.23
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0000.00917.93
8.2.50.0100.00018.09
8.2.40.0080.00022.23
8.2.30.0020.00519.48
8.2.20.0000.00817.80
8.2.10.0020.00518.17
8.2.00.0080.00017.93
8.1.280.0110.00725.92
8.1.270.0090.00023.99
8.1.260.0050.00228.09
8.1.250.0070.00028.09
8.1.240.0100.00022.61
8.1.230.0070.00417.95
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0030.00717.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0080.00318.55
8.1.160.0040.00420.69
8.1.150.0000.00719.05
8.1.140.0060.00319.50
8.1.130.0000.00817.57
8.1.120.0070.00017.33
8.1.110.0000.00717.30
8.1.100.0040.00417.38
8.1.90.0000.00817.40
8.1.80.0030.00517.39
8.1.70.0080.00017.30
8.1.60.0060.00317.40
8.1.50.0090.00017.43
8.1.40.0000.00817.58
8.1.30.0000.00817.65
8.1.20.0040.00417.61
8.1.10.0070.00017.59
8.1.00.0030.00617.40
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.26
8.0.270.0070.00017.13
8.0.260.0000.00717.19
8.0.250.0070.00016.86
8.0.240.0060.00016.92
8.0.230.0030.00316.86
8.0.220.0030.00316.79
8.0.210.0000.00716.94
8.0.200.0000.00816.88
8.0.190.0050.00216.95
8.0.180.0040.00416.92
8.0.170.0080.00016.90
8.0.160.0050.00216.87
8.0.150.0000.00716.90
8.0.140.0040.00416.86
8.0.130.0000.00613.32
8.0.120.0060.00316.74
8.0.110.0070.00016.87
8.0.100.0040.00416.77
8.0.90.0030.00416.70
8.0.80.0030.01216.82
8.0.70.0000.00716.94
8.0.60.0000.00716.87
8.0.50.0020.00516.79
8.0.30.0080.01117.04
8.0.20.0090.01017.40
8.0.10.0050.00316.93
8.0.00.0100.00816.66
7.4.330.0020.00216.71
7.4.320.0030.00316.50
7.4.300.0000.00716.49
7.4.290.0070.00016.45
7.4.280.0040.00416.36
7.4.270.0000.00716.63
7.4.260.0040.00416.64
7.4.250.0000.00816.56
7.4.240.0040.00416.65
7.4.230.0030.00316.44
7.4.220.0100.00716.55
7.4.210.0080.00816.53
7.4.200.0040.00316.64
7.4.160.0150.00616.60
7.4.150.0030.01517.40
7.4.140.0110.01317.86
7.4.130.0110.00616.57
7.4.120.0100.00716.67
7.4.110.0100.00616.38
7.4.100.0070.01016.28
7.4.90.0110.00716.51
7.4.80.0160.00619.39
7.4.70.0120.00616.34
7.4.60.0100.00816.30
7.4.50.0050.01316.39
7.4.40.0040.01416.58
7.4.30.0070.01816.19
7.4.20.0180.00416.26
7.4.10.0100.00716.40
7.4.00.0050.01115.70
7.3.330.0020.00213.24
7.3.320.0000.00613.22
7.3.310.0080.00016.48
7.3.300.0030.00316.39
7.3.290.0000.00616.30
7.3.280.0130.00916.31
7.3.270.0120.00617.40
7.3.260.0070.01116.36
7.3.250.0110.00916.29
7.3.240.0140.00416.52
7.3.230.0140.00316.51
7.3.210.0080.00816.42
7.3.200.0080.00816.41
7.3.190.0110.00816.45
7.3.180.0070.01416.34
7.3.170.0080.01316.41
7.3.160.0150.00716.42
7.3.150.0030.02016.43
7.3.140.0130.00616.43
7.3.130.0070.01016.43
7.3.120.0030.01315.23
7.3.110.0090.00915.43
7.3.100.0110.00515.46
7.3.90.0080.00915.39
7.3.80.0030.01215.54
7.3.70.0090.00715.34
7.3.60.0090.00515.35
7.3.50.0080.00715.42
7.3.40.0070.00815.34
7.3.30.0110.00615.23
7.3.20.0060.01016.57
7.3.10.0090.00716.60
7.3.00.0090.00916.52
7.2.330.0120.01116.54
7.2.320.0040.01216.50
7.2.310.0130.00916.83
7.2.300.0130.00916.66
7.2.290.0050.01816.47
7.2.280.0050.01416.37
7.2.270.0080.01216.75
7.2.260.0120.00616.80
7.2.250.0070.00915.89
7.2.240.0040.01115.52
7.2.230.0100.00715.58
7.2.220.0040.01215.51
7.2.210.0070.00915.55
7.2.200.0030.01315.55
7.2.190.0050.01215.48
7.2.180.0060.00915.60
7.2.170.0110.00215.55
7.2.160.0060.00915.78
7.2.150.0150.00816.79
7.2.140.0120.01016.78
7.2.130.0090.01316.75
7.2.120.0080.01016.80
7.2.110.0080.01216.75
7.2.100.0130.00816.90
7.2.90.0140.00816.91
7.2.80.0140.00216.71
7.2.70.0150.00816.65
7.2.60.0070.00716.79
7.2.50.0100.01016.81
7.2.40.0100.00816.59
7.2.30.0140.00916.83
7.2.20.0160.00816.79
7.2.10.0080.01116.73
7.2.00.0070.00817.77
7.1.330.0050.01015.61
7.1.320.0120.01015.75
7.1.310.0080.00615.69
7.1.300.0070.00715.65
7.1.290.0060.01115.76
7.1.280.0060.01015.54
7.1.270.0090.00815.72
7.1.260.0080.00715.64
7.1.250.0090.00815.60
7.1.240.0150.00915.46
7.1.230.0080.01715.51
7.1.220.0100.01015.45
7.1.210.0100.01415.63
7.1.200.0060.00915.67
7.1.190.0140.00715.43
7.1.180.0070.01415.62
7.1.170.0090.01115.49
7.1.160.0100.00615.26
7.1.150.0100.01015.59
7.1.140.0240.01215.41
7.1.130.0180.00815.65
7.1.120.0160.01015.36
7.1.110.0100.01615.63
7.1.100.0140.00816.93
7.1.90.0160.00815.54
7.1.80.0140.01015.55
7.1.70.0040.01316.38
7.1.60.0190.00517.35
7.1.50.0160.00316.22
7.1.40.0270.00615.46
7.1.30.0060.01315.54
7.1.20.0130.00615.51
7.1.10.0190.00415.40
7.1.00.0080.04418.96
7.0.330.0140.00815.02
7.0.320.0150.00415.21
7.0.310.0070.01315.25
7.0.300.0100.01015.25
7.0.290.0080.00815.18
7.0.280.0160.00615.16
7.0.270.0120.01215.16
7.0.260.0130.01014.95
7.0.250.0220.00415.30
7.0.240.0050.01115.25
7.0.230.0100.01415.19
7.0.220.0090.01515.18
7.0.210.0200.00815.31
7.0.200.0340.00614.82
7.0.190.0150.00915.11
7.0.180.0100.01315.27
7.0.170.0250.01015.13
7.0.160.0140.00515.09
7.0.150.0150.00615.26
7.0.140.0130.01015.24
7.0.130.0080.01215.30
7.0.120.0080.01215.03
7.0.110.0130.01015.02
7.0.100.0060.01515.29
7.0.90.0130.00315.37
7.0.80.0110.01115.02
7.0.70.0070.01115.18
7.0.60.0080.02918.38
7.0.50.0040.02716.50
7.0.40.0080.04817.58
7.0.30.0200.03817.63
7.0.20.0190.03817.76
7.0.10.0100.04717.68
7.0.00.0090.03417.76
5.6.400.0220.00315.89
5.6.390.0030.01616.22
5.6.380.0120.01116.12
5.6.370.0130.00816.21
5.6.360.0120.01315.95
5.6.350.0090.00916.18
5.6.340.0180.00416.13
5.6.330.0060.01516.10
5.6.320.0040.01515.86
5.6.310.0130.00816.24
5.6.300.0180.00916.26
5.6.290.0180.00716.11
5.6.280.0100.03818.56
5.6.270.0170.00715.83
5.6.260.0040.02015.96
5.6.250.0170.01016.00
5.6.240.0160.00616.11
5.6.230.0140.01516.05
5.6.220.0190.00616.08
5.6.210.0110.02818.21
5.6.200.0110.04417.13
5.6.190.0100.04318.27
5.6.180.0190.04818.23
5.6.170.0180.04618.22
5.6.160.0130.02718.30
5.6.150.0060.02817.07
5.6.140.0080.04817.13
5.6.130.0110.02917.16
5.6.120.0100.03018.58
5.6.110.0060.02718.53
5.6.100.0150.04118.36
5.6.90.0100.02718.46
5.6.80.0120.04418.19
5.6.70.0160.00716.00
5.6.60.0040.02116.09
5.6.50.0120.02316.03
5.6.40.0080.01515.81
5.6.30.0040.02315.72
5.6.20.0150.01016.07
5.6.10.0190.01215.98
5.6.00.0130.01015.99
5.5.380.0140.00615.88
5.5.370.0120.01215.86
5.5.360.0100.01916.02
5.5.350.0060.02918.22
5.5.340.0130.03016.93
5.5.330.0150.04318.19
5.5.320.0310.03918.01
5.5.310.0250.03218.25
5.5.300.0170.03416.95
5.5.290.0070.02816.95
5.5.280.0060.04718.34
5.5.270.0090.04518.28
5.5.260.0190.04118.41
5.5.250.0080.04618.28
5.5.240.0130.03018.11
5.5.230.0060.01715.86
5.5.220.0060.01615.98
5.5.210.0170.00715.90
5.5.200.0080.02115.77
5.5.190.0100.01615.86
5.5.180.0150.00915.97
5.5.170.0220.00215.84
5.5.160.0170.00916.08
5.5.150.0100.01615.65
5.5.140.0030.01815.88
5.5.130.0180.00715.80
5.5.120.0150.01216.15
5.5.110.0260.00315.95
5.5.100.0210.00715.93
5.5.90.0240.01315.63
5.5.80.0220.00615.86
5.5.70.0160.01015.85
5.5.60.0230.00015.63
5.5.50.0210.00915.58
5.5.40.0110.01415.61
5.5.30.0170.00915.45
5.5.20.0150.01215.70
5.5.10.0170.00815.86
5.5.00.0130.01315.71

preferences:
55.15 ms | 400 KiB | 5 Q