3v4l.org

run code in 300+ PHP versions simultaneously
<?php  $str = 'the quick brown fox jumps over the lazy dog.';  echo preg_replace('/the/', 'That', $str, 1);   ?>  - See more at: http://www.w3resource.com/php-exercises/php-string-exercises.php#sthash.nsXRqU7s.dpuf<?php $text = "The quick brown fox jumped over the lazy dog."; $newtext = wordwrap($text, 20, "<br />n"); echo $newtext; ?>

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.6.80.0130.07720.47
5.5.240.0000.05020.14
5.4.400.0430.06718.70
5.4.390.0400.05718.50
5.4.380.0320.05718.70
5.4.370.0250.05818.58
5.4.360.0230.05518.64
5.4.350.0170.05115.32
5.4.340.0210.05715.34
5.4.320.0270.04015.55
5.4.310.0190.04715.57
5.4.300.0190.05415.45
5.4.290.0210.04615.45
5.4.280.0220.04915.51
5.4.270.0180.04615.52
5.4.260.0200.05115.41
5.4.250.0210.04815.49
5.4.240.0200.05215.36
5.4.230.0210.05915.41
5.4.220.0290.04215.49
5.4.210.0190.04615.50
5.4.200.0180.04514.44
5.4.190.0170.04915.54
5.4.180.0210.04815.49
5.4.170.0170.04915.39
5.4.160.0270.04315.50
5.4.150.0230.05115.48
5.4.140.0160.05114.16
5.4.130.0200.04714.11
5.4.120.0200.04414.11
5.4.110.0210.05114.09
5.4.100.0200.04714.07
5.4.90.0250.05114.10
5.4.80.0220.05414.10
5.4.70.0300.04614.15
5.4.60.0210.04514.10
5.4.50.0220.04314.14
5.4.40.0170.04514.07
5.4.30.0240.04814.07
5.4.20.0210.04314.04
5.4.10.0180.04514.15
5.4.00.0160.04513.60
5.3.290.0270.05513.75
5.3.280.0230.05313.60
5.3.270.0240.05613.61
5.3.260.0190.05213.64
5.3.250.0200.04513.66
5.3.240.0170.04913.61
5.3.230.0210.04413.61
5.3.220.0180.05713.54
5.3.210.0210.04613.61
5.3.200.0260.05113.61
5.3.190.0170.04613.60
5.3.180.0160.04513.57
5.3.170.0160.04413.56
5.3.160.0190.04613.60
5.3.150.0210.04113.64
5.3.140.0240.05213.55
5.3.130.0200.04913.52
5.3.120.0230.05213.54
5.3.110.0140.05013.56
5.3.100.0170.04813.10
5.3.90.0200.04613.00
5.3.80.0180.04812.98
5.3.70.0220.04213.03
5.3.60.0230.04312.97
5.3.50.0200.05112.92
5.3.40.0240.04712.93
5.3.30.0290.04612.87
5.3.20.0200.05512.65
5.3.10.0250.05012.66
5.3.00.0200.05312.58
5.2.170.0140.04010.18
5.2.160.0130.04510.16
5.2.150.0190.04310.14
5.2.140.0140.04310.14
5.2.130.0150.03510.09
5.2.120.0190.03110.09
5.2.110.0250.03410.11
5.2.100.0150.04510.14
5.2.90.0160.03610.09
5.2.80.0190.03810.17
5.2.70.0170.03710.10
5.2.60.0210.03710.10
5.2.50.0200.04110.09
5.2.40.0140.03910.04
5.2.30.0210.0319.93
5.2.20.0080.03910.01
5.2.10.0170.0329.88
5.2.00.0130.0429.74
5.1.60.0130.0379.03
5.1.50.0180.0298.97
5.1.40.0100.0329.01
5.1.30.0130.0339.42
5.1.20.0100.0349.41
5.1.10.0150.0309.05
5.1.00.0130.0369.12
5.0.50.0080.0317.53
5.0.40.0110.0197.42
5.0.30.0060.0407.22
5.0.20.0060.0267.18
5.0.10.0050.0297.18
5.0.00.0070.0387.16
4.4.90.0070.0215.33
4.4.80.0070.0185.33
4.4.70.0070.0195.29
4.4.60.0050.0215.30
4.4.50.0050.0215.34
4.4.40.0050.0305.28
4.4.30.0040.0215.28
4.4.20.0060.0225.39
4.4.10.0060.0205.40
4.4.00.0070.0355.32
4.3.110.0060.0245.23
4.3.100.0070.0215.19
4.3.90.0130.0185.24
4.3.80.0060.0305.20
4.3.70.0080.0175.22
4.3.60.0090.0215.21
4.3.50.0090.0255.26
4.3.40.0060.0285.13
4.3.30.0030.0204.29
4.3.20.0080.0214.28
4.3.10.0040.0224.26
4.3.00.0030.0238.44

preferences:
140.61 ms | 1394 KiB | 7 Q