3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d', strtotime('This monday', strtotime('2013-04-21'))); echo phpversion();
Output for 7.1.0
2013-04-227.1.0
Output for 7.0.14
2013-04-227.0.14
Output for 7.0.12
2013-04-227.0.12
Output for 7.0.10
2013-04-227.0.10
Output for 7.0.9
2013-04-227.0.9
Output for 7.0.8
2013-04-227.0.8
Output for 7.0.7
2013-04-227.0.7
Output for 7.0.6
2013-04-227.0.6
Output for 7.0.5
2013-04-227.0.5
Output for 7.0.4
2013-04-227.0.4
Output for 7.0.3
2013-04-227.0.3
Output for 7.0.2
2013-04-227.0.2
Output for 7.0.1
2013-04-227.0.1
Output for 7.0.0
2013-04-227.0.0
Output for hhvm-3.10.0 - 3.12.0
2013-04-225.6.99-hhvm
Output for 5.6.28
2013-04-225.6.28
Output for 5.6.25
2013-04-225.6.25
Output for 5.6.24
2013-04-225.6.24
Output for 5.6.23
2013-04-225.6.23
Output for 5.6.22
2013-04-225.6.22
Output for 5.6.21
2013-04-225.6.21
Output for 5.6.20
2013-04-225.6.20
Output for 5.6.19
2013-04-225.6.19
Output for 5.6.18
2013-04-225.6.18
Output for 5.6.17
2013-04-225.6.17
Output for 5.6.16
2013-04-225.6.16
Output for 5.6.15
2013-04-225.6.15
Output for 5.6.14
2013-04-225.6.14
Output for 5.6.13
2013-04-225.6.13
Output for 5.6.12
2013-04-225.6.12
Output for 5.6.11
2013-04-225.6.11
Output for 5.6.10
2013-04-225.6.10
Output for 5.6.9
2013-04-225.6.9
Output for 5.6.8
2013-04-225.6.8
Output for 5.6.7
2013-04-225.6.7
Output for 5.6.6
2013-04-225.6.6
Output for 5.6.5
2013-04-225.6.5
Output for 5.6.4
2013-04-225.6.4
Output for 5.6.3
2013-04-225.6.3
Output for 5.6.2
2013-04-225.6.2
Output for 5.6.1
2013-04-225.6.1
Output for 5.6.0
2013-04-225.6.0
Output for 5.5.38
2013-04-225.5.38
Output for 5.5.37
2013-04-225.5.37
Output for 5.5.36
2013-04-225.5.36
Output for 5.5.35
2013-04-225.5.35
Output for 5.5.34
2013-04-225.5.34
Output for 5.5.33
2013-04-225.5.33
Output for 5.5.32
2013-04-225.5.32
Output for 5.5.31
2013-04-225.5.31
Output for 5.5.30
2013-04-225.5.30
Output for 5.5.29
2013-04-225.5.29
Output for 5.5.28
2013-04-225.5.28
Output for 5.5.27
2013-04-225.5.27
Output for 5.5.26
2013-04-225.5.26
Output for 5.5.25
2013-04-225.5.25
Output for 5.5.24
2013-04-225.5.24
Output for 5.5.23
2013-04-225.5.23
Output for 5.5.22
2013-04-225.5.22
Output for 5.5.21
2013-04-225.5.21
Output for 5.5.20
2013-04-225.5.20
Output for 5.5.19
2013-04-225.5.19
Output for 5.5.18
2013-04-225.5.18
Output for 5.5.16
2013-04-225.5.16
Output for 5.5.15
2013-04-225.5.15
Output for 5.5.14
2013-04-225.5.14
Output for 5.5.13
2013-04-225.5.13
Output for 5.5.12
2013-04-225.5.12
Output for 5.5.11
2013-04-225.5.11
Output for 5.5.10
2013-04-225.5.10
Output for 5.5.9
2013-04-225.5.9
Output for 5.5.8
2013-04-225.5.8
Output for 5.5.7
2013-04-225.5.7
Output for 5.5.6
2013-04-225.5.6
Output for 5.5.5
2013-04-225.5.5
Output for 5.5.4
2013-04-225.5.4
Output for 5.5.3
2013-04-225.5.3
Output for 5.5.2
2013-04-225.5.2
Output for 5.5.1
2013-04-225.5.1
Output for 5.5.0
2013-04-225.5.0
Output for 5.4.45
2013-04-225.4.45
Output for 5.4.44
2013-04-225.4.44
Output for 5.4.43
2013-04-225.4.43
Output for 5.4.42
2013-04-225.4.42
Output for 5.4.41
2013-04-225.4.41
Output for 5.4.40
2013-04-225.4.40
Output for 5.4.39
2013-04-225.4.39
Output for 5.4.38
2013-04-225.4.38
Output for 5.4.37
2013-04-225.4.37
Output for 5.4.36
2013-04-225.4.36
Output for 5.4.35
2013-04-225.4.35
Output for 5.4.34
2013-04-225.4.34
Output for 5.4.32
2013-04-225.4.32
Output for 5.4.31
2013-04-225.4.31
Output for 5.4.30
2013-04-225.4.30
Output for 5.4.29
2013-04-225.4.29
Output for 5.4.28
2013-04-225.4.28
Output for 5.4.27
2013-04-225.4.27
Output for 5.4.26
2013-04-225.4.26
Output for 5.4.25
2013-04-225.4.25
Output for 5.4.24
2013-04-225.4.24
Output for 5.4.23
2013-04-225.4.23
Output for 5.4.22
2013-04-225.4.22
Output for 5.4.21
2013-04-225.4.21
Output for 5.4.20
2013-04-225.4.20
Output for 5.4.19
2013-04-225.4.19
Output for 5.4.18
2013-04-225.4.18
Output for 5.4.17
2013-04-225.4.17
Output for 5.4.16
2013-04-225.4.16
Output for 5.4.15
2013-04-225.4.15
Output for 5.4.14
2013-04-225.4.14
Output for 5.4.13
2013-04-225.4.13
Output for 5.4.12
2013-04-225.4.12
Output for 5.4.11
2013-04-225.4.11
Output for 5.4.10
2013-04-225.4.10
Output for 5.4.9
2013-04-225.4.9
Output for 5.4.8
2013-04-225.4.8
Output for 5.4.7
2013-04-225.4.7
Output for 5.4.6
2013-04-225.4.6
Output for 5.4.5
2013-04-225.4.5
Output for 5.4.4
2013-04-225.4.4
Output for 5.4.3
2013-04-225.4.3
Output for 5.4.2
2013-04-225.4.2
Output for 5.4.1
2013-04-225.4.1
Output for 5.4.0
2013-04-225.4.0
Output for 5.3.29
2013-04-225.3.29
Output for 5.3.28
2013-04-225.3.28
Output for 5.3.27
2013-04-225.3.27
Output for 5.3.26
2013-04-225.3.26
Output for 5.3.25
2013-04-225.3.25
Output for 5.3.24
2013-04-225.3.24
Output for 5.3.23
2013-04-225.3.23
Output for 5.3.22
2013-04-225.3.22
Output for 5.3.21
2013-04-225.3.21
Output for 5.3.20
2013-04-225.3.20
Output for 5.3.19
2013-04-225.3.19
Output for 5.3.18
2013-04-225.3.18
Output for 5.3.17
2013-04-225.3.17
Output for 5.3.16
2013-04-225.3.16
Output for 5.3.15
2013-04-225.3.15
Output for 5.3.14
2013-04-225.3.14
Output for 5.3.13
2013-04-225.3.13
Output for 5.3.12
2013-04-225.3.12
Output for 5.3.11
2013-04-225.3.11
Output for 5.3.10
2013-04-225.3.10
Output for 5.3.9
2013-04-225.3.9
Output for 5.3.8
2013-04-225.3.8
Output for 5.3.7
2013-04-225.3.7
Output for 5.3.6
2013-04-225.3.6
Output for 5.3.5
2013-04-225.3.5
Output for 5.3.4
2013-04-225.3.4
Output for 5.3.3
2013-04-225.3.3
Output for 5.3.2
2013-04-225.3.2
Output for 5.3.1
2013-04-225.3.1
Output for 5.3.0
2013-04-225.3.0
Output for 5.2.17
2013-04-225.2.17
Output for 5.2.16
2013-04-225.2.16
Output for 5.2.15
2013-04-225.2.15
Output for 5.2.14
2013-04-225.2.14
Output for 5.2.13
2013-04-225.2.13
Output for 5.2.12
2013-04-225.2.12
Output for 5.2.11
2013-04-225.2.11
Output for 5.2.10
2013-04-225.2.10
Output for 5.2.9
2013-04-225.2.9
Output for 5.2.8
2013-04-225.2.8
Output for 5.2.7
2013-04-225.2.7
Output for 5.2.6
2013-04-225.2.6
Output for 5.2.5
2013-04-225.2.5
Output for 5.2.4
2013-04-225.2.4
Output for 5.2.3
2013-04-225.2.3
Output for 5.2.2
2013-04-225.2.2
Output for 5.2.1
2013-04-225.2.1
Output for 5.2.0
2013-04-225.2.0
Output for 5.1.6
2013-04-225.1.6
Output for 5.1.5
2013-04-225.1.5
Output for 5.1.4
2013-04-225.1.4
Output for 5.1.3
2013-04-225.1.3
Output for 5.1.2
2013-04-225.1.2
Output for 5.1.1
2013-04-225.1.1
Output for 5.1.0
2013-04-225.1.0
Output for 5.0.5
2013-04-225.0.5
Output for 5.0.4
2013-04-225.0.4
Output for 5.0.3
2013-04-225.0.3
Output for 5.0.2
2013-04-225.0.2
Output for 5.0.1
2013-04-225.0.1
Output for 5.0.0
2013-04-225.0.0
Output for 4.4.9
2013-04-224.4.9
Output for 4.4.8
2013-04-224.4.8
Output for 4.4.7
2013-04-224.4.7
Output for 4.4.6
2013-04-224.4.6
Output for 4.4.5
2013-04-224.4.5
Output for 4.4.4
2013-04-224.4.4
Output for 4.4.3
2013-04-224.4.3
Output for 4.4.2
2013-04-224.4.2
Output for 4.4.1
2013-04-224.4.1
Output for 4.4.0
2013-04-224.4.0
Output for 4.3.11
2013-04-224.3.11
Output for 4.3.10
2013-04-224.3.10
Output for 4.3.9
2013-04-224.3.9
Output for 4.3.8
2013-04-224.3.8
Output for 4.3.7
2013-04-224.3.7
Output for 4.3.6
2013-04-224.3.6
Output for 4.3.5
2013-04-224.3.5
Output for 4.3.4
2013-04-224.3.4
Output for 4.3.3
2013-04-224.3.3
Output for 4.3.2
2013-04-224.3.2
Output for 4.3.1
2013-04-224.3.1
Output for 4.3.0
2013-04-224.3.0