3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['week_of']=20151116; if(isset($_GET['week_of'])&&preg_match('/^[0-9]{8}$/',$_GET['week_of'])){ $week_of=DateTime::createFromFormat('Ymd',$_GET['week_of']); }else{ $week_of=0; } echo $week_of;

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.0070.01016.75
8.3.50.0120.00922.24
8.3.40.0040.01119.39
8.3.30.0100.00719.27
8.3.20.0040.00420.34
8.3.10.0040.00423.48
8.3.00.0050.00319.76
8.2.180.0150.00716.98
8.2.170.0110.00422.96
8.2.160.0100.00320.52
8.2.150.0050.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00019.50
8.2.120.0070.00026.35
8.2.110.0070.00321.91
8.2.100.0090.00317.93
8.2.90.0080.00019.16
8.2.80.0040.00418.13
8.2.70.0000.00818.00
8.2.60.0100.00517.55
8.2.50.0080.00018.07
8.2.40.0000.00719.35
8.2.30.0000.00920.71
8.2.20.0040.00418.13
8.2.10.0000.00818.25
8.2.00.0000.00718.20
8.1.280.0070.00725.92
8.1.270.0030.00622.22
8.1.260.0030.00528.09
8.1.250.0050.00228.09
8.1.240.0090.00023.78
8.1.230.0070.00420.39
8.1.220.0000.00817.78
8.1.210.0090.00018.77
8.1.200.0030.00617.36
8.1.190.0060.00317.25
8.1.180.0000.00918.10
8.1.170.0000.00720.24
8.1.160.0040.00422.02
8.1.150.0050.00218.98
8.1.140.0050.00319.66
8.1.130.0040.00417.66
8.1.120.0040.00417.72
8.1.110.0000.00717.64
8.1.100.0040.00417.59
8.1.90.0030.00617.78
8.1.80.0040.00417.76
8.1.70.0080.00017.59
8.1.60.0030.00617.68
8.1.50.0040.00417.64
8.1.40.0070.00317.70
8.1.30.0030.00617.85
8.1.20.0080.00017.83
8.1.10.0000.00817.76
8.1.00.0100.00017.82
8.0.300.0000.00719.21
8.0.290.0000.00717.13
8.0.280.0040.00418.60
8.0.270.0020.00517.35
8.0.260.0080.00017.24
8.0.250.0030.00317.32
8.0.240.0080.00017.32
8.0.230.0000.00717.42
8.0.220.0050.00217.32
8.0.210.0040.00417.25
8.0.200.0000.00717.27
8.0.190.0000.00717.42
8.0.180.0040.00417.32
8.0.170.0040.00417.34
8.0.160.0000.00917.19
8.0.150.0000.00717.34
8.0.140.0040.00417.22
8.0.130.0030.00313.59
8.0.120.0040.00417.34
8.0.110.0040.00417.25
8.0.100.0080.00017.35
8.0.90.0040.00417.18
8.0.80.0060.00917.23
8.0.70.0030.00517.11
8.0.60.0050.00217.28
8.0.50.0040.00417.19
8.0.30.0140.00817.35
8.0.20.0120.00717.54
8.0.10.0070.00017.43
8.0.00.0130.00617.14
7.4.330.0030.00316.68
7.4.320.0030.00316.78
7.4.300.0000.00716.83
7.4.290.0040.00416.90
7.4.280.0040.00416.72
7.4.270.0070.00016.68
7.4.260.0000.00716.71
7.4.250.0070.00016.80
7.4.240.0020.00516.76
7.4.230.0030.00316.68
7.4.220.0090.01016.73
7.4.210.0100.01016.94
7.4.200.0000.00816.93
7.4.160.0030.01216.88
7.4.150.0110.00717.40
7.4.140.0100.00917.86
7.4.130.0110.00616.78
7.4.120.0100.01016.84
7.4.110.0130.00716.89
7.4.100.0140.00416.76
7.4.90.0090.00916.80
7.4.80.0120.00619.39
7.4.70.0070.01016.93
7.4.60.0090.00916.87
7.4.50.0060.01216.61
7.4.40.0090.00916.89
7.4.30.0130.00316.93
7.4.10.0090.01015.43
7.4.00.0080.00815.43
7.3.330.0070.00013.38
7.3.320.0000.00513.26
7.3.310.0000.00816.55
7.3.300.0040.00416.53
7.3.290.0060.01016.52
7.3.280.0090.01116.53
7.3.270.0170.00717.40
7.3.260.0070.01116.79
7.3.250.0100.00816.79
7.3.240.0110.00516.72
7.3.230.0180.00516.75
7.3.210.0070.01016.75
7.3.200.0130.00316.76
7.3.190.0030.01516.73
7.3.180.0080.00816.98
7.3.170.0100.01316.88
7.3.160.0100.00716.68
7.3.130.0130.00315.11
7.3.120.0060.00915.08
7.3.110.0100.01015.26
7.3.100.0050.00915.27
7.3.90.0090.00715.30
7.3.80.0060.00715.27
7.3.70.0050.00815.19
7.3.60.0030.01015.06
7.3.50.0050.00615.23
7.3.40.0050.00615.21
7.3.30.0000.01315.12
7.3.20.0050.01016.89
7.3.10.0050.00516.93
7.3.00.0030.00816.90
7.2.330.0080.00817.00
7.2.320.0170.00317.00
7.2.310.0040.01516.86
7.2.300.0130.00416.82
7.2.290.0030.01416.89
7.2.260.0090.00915.36
7.2.250.0070.00915.35
7.2.240.0070.00815.34
7.2.230.0090.01115.56
7.2.220.0070.01015.33
7.2.210.0080.00715.30
7.2.200.0050.00715.07
7.2.190.0030.00915.23
7.2.180.0080.00515.20
7.2.170.0020.01215.49
7.2.160.0000.01315.31
7.2.150.0090.00617.17
7.2.140.0050.00717.17
7.2.130.0110.00517.03
7.2.120.0030.00717.14
7.2.110.0110.00317.28
7.2.100.0030.01017.21
7.2.90.0100.00417.26
7.2.80.0070.00817.19
7.2.70.0030.01117.32
7.2.60.0070.00717.19
7.2.50.0050.01117.16
7.2.40.0090.00717.37
7.2.30.0080.00517.20
7.2.20.0090.00617.24
7.2.10.0020.01517.14
7.2.00.0010.01118.21
7.1.330.0040.01216.12
7.1.320.0030.00816.17
7.1.310.0060.00715.97
7.1.300.0050.00516.15
7.1.290.0050.00715.88
7.1.280.0080.00715.76
7.1.270.0050.00815.80
7.1.260.0040.01215.99
7.1.250.0030.00816.00
7.1.240.0040.00816.16
7.1.230.0040.00616.07
7.1.220.0060.00816.12
7.1.210.0050.00916.13
7.1.200.0050.00715.96
7.1.190.0050.00815.99
7.1.180.0060.00616.13
7.1.170.0050.00816.09
7.1.160.0060.00516.17
7.1.150.0050.00715.91
7.1.140.0040.01215.99
7.1.130.0070.00716.10
7.1.120.0020.01316.20
7.1.110.0070.00715.94
7.1.100.0070.00716.82
7.1.90.0020.01116.12
7.1.80.0060.00716.11
7.1.70.0050.00516.46
7.1.60.0080.01017.22
7.1.50.0060.01016.37
7.1.40.0100.00516.09
7.1.30.0080.00516.11
7.1.20.0020.01216.24
7.1.10.0030.01116.00
7.1.00.0050.02818.26
7.0.330.0080.00715.82
7.0.320.0030.01015.70
7.0.310.0020.01215.56
7.0.300.0080.00715.82
7.0.290.0050.01015.75
7.0.280.0070.00715.83
7.0.270.0040.00815.62
7.0.260.0050.00715.59
7.0.250.0080.00615.55
7.0.240.0000.01615.77
7.0.230.0090.00315.83
7.0.220.0090.00515.59
7.0.210.0050.00715.73
7.0.200.0050.01015.51
7.0.190.0060.00615.68
7.0.180.0030.01015.72
7.0.170.0050.00815.46
7.0.160.0090.00515.81
7.0.150.0060.00815.58
7.0.140.0050.00715.77
7.0.130.0050.00815.74
7.0.120.0020.01015.76
7.0.110.0010.00815.73
7.0.100.0050.00615.74
7.0.90.0060.00515.79
7.0.80.0050.00915.82
7.0.70.0060.00715.84
7.0.60.0150.02217.07
7.0.50.0060.03116.44
7.0.40.0040.03215.89
7.0.30.0130.02015.97
7.0.20.0100.03215.89
7.0.10.0060.02115.95
7.0.00.0070.03315.84
5.6.400.0080.00414.77
5.6.390.0090.00614.47
5.6.380.0090.00314.60
5.6.370.0090.00214.43
5.6.360.0100.00614.54
5.6.350.0080.00614.87
5.6.340.0050.01214.51
5.6.330.0030.00914.53
5.6.320.0030.01214.64
5.6.310.0090.00714.60
5.6.300.0050.00814.53
5.6.290.0030.00714.88
5.6.280.0090.02416.90
5.6.270.0020.01414.57
5.6.260.0030.01114.58
5.6.250.0030.01014.61
5.6.240.0080.00514.84
5.6.230.0050.00614.63
5.6.220.0050.00814.76
5.6.210.0070.03116.72
5.6.200.0060.02115.76
5.6.190.0090.01716.59
5.6.180.0160.02816.66
5.6.170.0140.02316.69
5.6.160.0040.01916.60
5.6.150.0060.03315.84
5.6.140.0070.02915.68
5.6.130.0070.02115.80
5.6.120.0060.03316.79
5.6.110.0040.03316.77
5.6.100.0030.02116.69
5.6.90.0110.02416.81
5.6.80.0080.01916.43
5.6.70.0060.00614.50
5.6.60.0060.00714.59
5.6.50.0090.00314.36
5.6.40.0060.00614.41
5.6.30.0050.00814.47
5.6.20.0060.00814.51
5.6.10.0030.01014.63
5.6.00.0030.01014.61
5.5.380.0040.00814.45
5.5.370.0080.00314.61
5.5.360.0030.00714.43
5.5.350.1440.01516.41
5.5.340.0030.01815.85
5.5.330.0030.02216.38
5.5.320.0110.02716.58
5.5.310.0100.02616.45
5.5.300.0030.02215.59
5.5.290.0090.02915.71
5.5.280.0040.03416.78
5.5.270.0010.02016.60
5.5.260.0060.02916.79
5.5.250.0080.03216.59
5.5.240.0070.03116.24
5.5.230.0050.00814.67
5.5.220.0080.00514.41
5.5.210.0070.00614.46
5.5.200.0080.00614.39
5.5.190.0060.00914.52
5.5.180.0060.00514.57
5.5.170.0060.00514.32
5.5.160.0050.00814.18
5.5.150.0050.00714.47
5.5.140.0030.00714.59
5.5.130.0030.00614.42
5.5.120.0050.00914.45
5.5.110.0060.00814.67
5.5.100.0070.00714.59
5.5.90.0070.00514.27
5.5.80.0040.00514.40
5.5.70.0050.00614.35
5.5.60.0060.00614.41
5.5.50.0060.00614.29
5.5.40.0040.00714.15
5.5.30.0050.00514.28
5.5.20.0040.01114.36
5.5.10.0050.01014.16
5.5.00.0030.01214.42

preferences:
59.7 ms | 401 KiB | 5 Q