3v4l.org

run code in 300+ PHP versions simultaneously
<?php $SPW = array("1"=>"38", "2"=>"39", "3"=>"40", "4"=>"41", "5"=>"42", "6"=>"45", "7"=>"46", "8"=>"47", "9"=>"48", "10"=>"49", "11"=>"50", "12"=>"51", "13"=>"2", "14"=>"3", "15"=>"4", "16"=>"8", "17"=>"10", "18"=>"11", "19"=>"12", "20"=>"13", "21"=>"16", "22"=>"17"); $current_week_number = date('W'); $current_date = date('d/m/Y'); for($row = 0; $row < 23; $row++) { $x=0; foreach($SPW[$row] as $key => $value) { if($current_week_number== $key) { echo $current_week_number . " " . $key } $x++; } }

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)
5.4.320.0040.03912.51
5.4.310.0070.03712.50
5.4.300.0070.03612.50
5.4.290.0050.03912.50
5.4.280.0050.03612.40
5.4.270.0080.03412.40
5.4.260.0070.04312.39
5.4.250.0090.03912.39
5.4.240.0090.04012.40
5.4.230.0080.04112.39
5.4.220.0070.03812.39
5.4.210.0090.04012.39
5.4.200.0130.03612.39
5.4.190.0070.03512.39
5.4.180.0080.03612.38
5.4.170.0090.03612.39
5.4.160.0090.03612.39
5.4.150.0060.04012.38
5.4.140.0080.03912.07
5.4.130.0070.04312.05
5.4.120.0090.03812.02
5.4.110.0100.03512.02
5.4.100.0060.03712.02
5.4.90.0080.04012.02
5.4.80.0050.03912.02
5.4.70.0060.03512.02
5.4.60.0070.03512.02
5.4.50.0040.03912.02
5.4.40.0040.03612.00
5.4.30.0050.03712.00
5.4.20.0080.03511.99
5.4.10.0050.03512.00
5.4.00.0020.03911.49
5.3.290.0040.04112.80
5.3.280.0090.03812.71
5.3.270.0060.04012.72
5.3.260.0060.03812.72
5.3.250.0080.03412.72
5.3.240.0080.03512.72
5.3.230.0060.03812.70
5.3.220.0100.04612.68
5.3.210.0090.03712.68
5.3.200.0050.04412.68
5.3.190.0140.04612.68
5.3.180.0120.04712.67
5.3.170.0110.05112.66
5.3.160.0080.03612.67
5.3.150.0120.03312.67
5.3.140.0100.03412.66
5.3.130.0140.04112.66
5.3.120.0040.04312.66
5.3.110.0060.05112.66
5.3.100.0140.04412.11
5.3.90.0090.03512.08
5.3.80.0080.04412.07
5.3.70.0060.03612.07
5.3.60.0040.03912.07
5.3.50.0060.03812.00
5.3.40.0070.03912.00
5.3.30.0060.03611.96
5.3.20.0080.04611.73
5.3.10.0070.04711.70
5.3.00.0100.04811.68
5.2.170.0080.0409.19
5.2.160.0070.0409.19
5.2.150.0080.0459.19
5.2.140.0070.0559.19
5.2.130.0110.0389.15
5.2.120.0090.0379.14
5.2.110.0060.0419.15
5.2.100.0080.0449.15
5.2.90.0090.0459.15
5.2.80.0060.0459.14
5.2.70.0080.0489.14
5.2.60.0080.0429.10
5.2.50.0100.0449.07
5.2.40.0060.0429.04
5.2.30.0100.0429.02
5.2.20.0080.0419.00
5.2.10.0060.0398.93
5.2.00.0110.0358.79
5.1.60.0180.0278.07
5.1.50.0050.0268.07
5.1.40.0060.0268.06
5.1.30.0080.0258.40
5.1.20.0070.0378.43
5.1.10.0130.0518.15
5.1.00.0080.0398.15
5.0.50.0060.0296.64
5.0.40.0200.0276.50
5.0.30.0050.0436.31
5.0.20.0060.0256.28
5.0.10.0030.0296.26
5.0.00.0050.0406.25
4.4.90.0030.0184.78
4.4.80.0040.0174.75
4.4.70.0030.0234.75
4.4.60.0040.0194.75
4.4.50.0040.0244.77
4.4.40.0040.0284.71
4.4.30.0050.0154.76
4.4.20.0050.0154.84
4.4.10.0020.0234.85
4.4.00.0060.0264.76
4.3.110.0040.0204.67
4.3.100.0050.0134.66
4.3.90.0000.0174.64
4.3.80.0040.0284.58
4.3.70.0030.0194.63
4.3.60.0050.0124.63
4.3.50.0020.0164.62
4.3.40.0030.0244.54
4.3.30.0030.0153.31
4.3.20.0010.0203.29
4.3.10.0020.0163.23
4.3.00.0070.01713.95

preferences:
142.41 ms | 1394 KiB | 7 Q