3v4l.org

run code in 300+ PHP versions simultaneously
<?php $management = array( '100' => '1', '500' => '2', '1000' => '3', ); $speed = 10; $r= ''; ksort($management); foreach($management as $mgmt => $name) { if($mgmt >= $speed) { $r= $name; break; } } echo $r;

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.70.0190.00016.63
8.3.60.0070.01118.56
8.3.50.0150.00316.52
8.3.40.0110.00718.63
8.3.30.0140.00318.63
8.3.20.0050.00220.59
8.3.10.0040.00420.53
8.3.00.0060.00320.83
8.2.190.0080.00618.27
8.2.180.0070.01118.40
8.2.170.0140.00719.01
8.2.160.0070.01022.96
8.2.150.0070.00024.18
8.2.140.0000.00924.66
8.2.130.0080.00018.03
8.2.120.0070.00026.16
8.2.110.0050.00521.95
8.2.100.0080.00317.91
8.2.90.0060.00318.03
8.2.80.0030.00518.04
8.2.70.0000.00818.04
8.2.60.0040.00418.09
8.2.50.0060.00318.07
8.2.40.0040.00418.16
8.2.30.0070.00017.99
8.2.20.0000.00718.04
8.2.10.0000.00719.42
8.2.00.0000.00718.03
8.1.280.0130.00725.92
8.1.270.0040.00420.24
8.1.260.0110.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00317.36
8.1.230.0060.00621.03
8.1.220.0040.00417.79
8.1.210.0050.00318.79
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0100.00018.60
8.1.160.0030.00518.83
8.1.150.0040.00418.92
8.1.140.0090.00020.28
8.1.130.0090.00020.25
8.1.120.0000.00817.52
8.1.110.0040.00417.44
8.1.100.0080.00017.37
8.1.90.0030.00517.45
8.1.80.0040.00417.32
8.1.70.0030.00317.35
8.1.60.0040.00417.46
8.1.50.0000.01017.41
8.1.40.0030.00617.46
8.1.30.0000.00817.57
8.1.20.0030.00617.60
8.1.10.0000.00717.52
8.1.00.0030.00617.29
8.0.300.0000.00819.66
8.0.290.0100.00016.63
8.0.280.0030.00518.34
8.0.270.0030.00316.77
8.0.260.0030.00318.29
8.0.250.0070.00016.94
8.0.240.0030.00316.84
8.0.230.0000.00816.94
8.0.220.0070.00016.89
8.0.210.0070.00016.94
8.0.200.0070.00016.93
8.0.190.0000.00916.94
8.0.180.0040.00416.83
8.0.170.0060.00316.80
8.0.160.0040.00416.92
8.0.150.0030.00316.83
8.0.140.0000.00816.88
8.0.130.0000.00613.32
8.0.120.0050.00316.88
8.0.110.0000.00816.88
8.0.100.0000.00716.86
8.0.90.0040.00416.93
8.0.80.0030.01716.81
8.0.70.0000.00716.76
8.0.60.0040.00416.68
8.0.50.0040.00416.67
8.0.30.0100.00716.93
8.0.20.0110.01117.40
8.0.10.0050.00216.98
8.0.00.0100.01116.78
7.4.330.0000.00516.73
7.4.320.0070.00016.52
7.4.300.0060.00016.53
7.4.290.0030.00316.58
7.4.280.0000.00816.59
7.4.270.0040.00416.56
7.4.260.0000.00716.50
7.4.250.0080.00016.46
7.4.240.0070.00016.54
7.4.230.0070.00016.66
7.4.220.0040.00416.47
7.4.210.0040.01016.52
7.4.200.0040.00316.54
7.4.160.0110.00616.45
7.4.140.0070.01117.86
7.4.130.0070.01016.36
7.4.120.0090.01116.52
7.4.110.0100.00716.40
7.4.100.0070.01016.45
7.4.90.0060.01316.44
7.4.80.0090.00619.39
7.4.70.0100.00616.55
7.4.60.0100.01016.37
7.4.50.0050.00516.55
7.4.40.0090.00916.62
7.4.00.0090.00815.11
7.3.330.0000.00513.15
7.3.320.0000.00613.23
7.3.310.0030.00316.23
7.3.300.0000.00716.30
7.3.290.0070.00016.23
7.3.280.0070.00916.33
7.3.260.0120.00916.36
7.3.240.0090.00916.50
7.3.230.0100.00616.49
7.3.210.0120.00416.41
7.3.200.0060.00916.59
7.3.190.0060.01016.27
7.3.180.0030.01316.42
7.3.170.0100.00616.36
7.3.160.0140.00316.63
7.3.120.0060.01114.80
7.3.110.0070.01015.02
7.3.100.0140.00014.86
7.3.90.0060.00314.85
7.3.80.0060.00914.55
7.3.70.0030.00914.87
7.3.60.0070.00714.99
7.3.50.0030.00514.79
7.3.40.0100.00314.82
7.3.30.0090.00614.70
7.3.20.1310.00615.43
7.3.10.0620.00615.49
7.3.00.0700.00915.46
7.2.330.0110.00716.46
7.2.320.0070.01016.34
7.2.310.0100.00616.51
7.2.300.0130.00316.73
7.2.290.0100.00716.40
7.2.250.0080.01114.84
7.2.240.0100.01015.18
7.2.230.0090.00615.30
7.2.220.0060.00615.00
7.2.210.0030.00915.00
7.2.200.0000.00915.12
7.2.190.0000.01514.96
7.2.180.0030.00615.02
7.2.170.0070.00714.99
7.2.150.1170.00715.11
7.2.140.0950.00614.93
7.2.130.1120.00815.06
7.2.120.1030.00515.00
7.2.110.1040.00315.06
7.2.100.0990.01014.94
7.2.90.1060.00615.03
7.2.80.0970.00715.02
7.2.70.1100.00214.90
7.2.60.1010.00815.03
7.2.50.0950.00315.01
7.2.40.0890.00515.04
7.2.30.0980.00414.90
7.2.20.0970.00814.98
7.2.10.0980.01214.78
7.2.00.0930.00515.11
7.1.330.0100.00315.95
7.1.320.0000.00915.75
7.1.310.0030.00915.79
7.1.300.0000.00915.66
7.1.290.0060.00315.84
7.1.280.0140.00015.84
7.1.270.0070.00715.54
7.1.260.0060.00915.57
7.1.250.1100.00513.87

preferences:
28.74 ms | 401 KiB | 5 Q