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 = echo (new DateTime())->format('d-m-Y'); $current_date = date('d/m/Y'); $current_Month = date("m",strtotime($current_date)); 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.0080.03412.50
5.4.310.0090.04112.50
5.4.300.0060.04512.50
5.4.290.0090.03512.50
5.4.280.0070.03512.39
5.4.270.0080.04212.40
5.4.260.0080.03612.40
5.4.250.0120.03212.40
5.4.240.0060.03512.39
5.4.230.0050.04512.39
5.4.220.0050.04212.39
5.4.210.0090.04112.39
5.4.200.0050.03912.39
5.4.190.0070.03512.39
5.4.180.0070.03612.39
5.4.170.0040.03912.39
5.4.160.0070.04012.39
5.4.150.0100.04312.38
5.4.140.0060.04612.07
5.4.130.0030.03812.05
5.4.120.0060.03612.02
5.4.110.0080.04012.02
5.4.100.0070.03412.02
5.4.90.0070.03712.02
5.4.80.0080.04512.02
5.4.70.0090.03312.02
5.4.60.0070.04212.02
5.4.50.0070.04312.02
5.4.40.0080.03212.00
5.4.30.0070.04312.00
5.4.20.0070.03811.99
5.4.10.0070.03912.00
5.4.00.0030.03611.49
5.3.290.0100.04412.80
5.3.280.0080.03912.70
5.3.270.0060.03912.73
5.3.260.0050.05012.72
5.3.250.0090.04412.72
5.3.240.0020.04312.72
5.3.230.0080.03512.71
5.3.220.0060.04812.68
5.3.210.0060.04012.68
5.3.200.0080.03612.68
5.3.190.0090.03512.68
5.3.180.0030.04012.68
5.3.170.0080.03712.67
5.3.160.0090.03912.67
5.3.150.0110.03512.67
5.3.140.0090.03512.66
5.3.130.0090.04412.66
5.3.120.0110.04412.65
5.3.110.0060.04412.66
5.3.100.0080.04112.11
5.3.90.0100.04212.08
5.3.80.0090.03912.07
5.3.70.0040.03912.07
5.3.60.0070.03512.06
5.3.50.0040.03912.00
5.3.40.0070.03512.00
5.3.30.0050.04411.95
5.3.20.0100.04411.73
5.3.10.0080.04111.70
5.3.00.0100.04211.69
5.2.170.0080.0319.19
5.2.160.0070.0309.19
5.2.150.0050.0389.19
5.2.140.0050.0379.18
5.2.130.0050.0309.15
5.2.120.0060.0279.14
5.2.110.0040.0319.15
5.2.100.0070.0329.14
5.2.90.0020.0339.14
5.2.80.0040.0389.14
5.2.70.0070.0319.14
5.2.60.0040.0379.10
5.2.50.0070.0369.07
5.2.40.0070.0349.04
5.2.30.0060.0359.02
5.2.20.0060.0279.01
5.2.10.0120.0298.93
5.2.00.0050.0338.79
5.1.60.0040.0308.08
5.1.50.0030.0338.07
5.1.40.0050.0288.05
5.1.30.0080.0268.40
5.1.20.0040.0278.43
5.1.10.0050.0278.16
5.1.00.0030.0318.15
5.0.50.0020.0266.62
5.0.40.0040.0256.48
5.0.30.0000.0366.30
5.0.20.0070.0256.27
5.0.10.0040.0196.25
5.0.00.0040.0326.24
4.4.90.0030.0144.78
4.4.80.0050.0124.75
4.4.70.0030.0204.75
4.4.60.0020.0204.75
4.4.50.0040.0154.77
4.4.40.0040.0244.71
4.4.30.0010.0204.76
4.4.20.0030.0194.84
4.4.10.0040.0194.85
4.4.00.0030.0244.76
4.3.110.0050.0134.67
4.3.100.0030.0144.66
4.3.90.0020.0154.63
4.3.80.0030.0264.59
4.3.70.0020.0154.63
4.3.60.0010.0154.62
4.3.50.0040.0204.63
4.3.40.0030.0244.54
4.3.30.0010.0193.29
4.3.20.0030.0153.27
4.3.10.0020.0163.23
4.3.00.0070.01313.95

preferences:
138.4 ms | 1394 KiB | 7 Q