3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i='4N4P9N7P1N1P2N2P'; preg_match_all('/(\d+)(\w)/',$i,$m,2); foreach($m as $p)$k=$p[1],$o.=($p[2]=='N')?str_repeat('=',$k):str_repeat('- ',(int)($k/2)).($k%2?'-':''); $a=str_repeat('_',$n=strlen($o)); $b=str_repeat(' ',$n); echo("$a\n$b\n$b\n$o\n$b\n$a\n$n");

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.0070.08020.40
5.5.240.0030.08020.04
5.4.400.2030.04319.17
5.4.390.1930.04319.22
5.4.380.1970.05019.21
5.4.370.2030.04719.21
5.4.360.2000.04719.00
5.4.350.2030.04019.09
5.4.340.2070.04019.06
5.4.320.1930.05019.00
5.4.310.1770.05019.25
5.4.300.1700.04319.14
5.4.290.0030.04019.00
5.4.280.0070.04318.98
5.4.270.1000.04319.21
5.4.260.2030.04019.30
5.4.250.1900.03719.21
5.4.240.1770.04019.19
5.4.230.2000.02718.83
5.4.220.1830.03719.08
5.4.210.1830.04018.99
5.4.200.1700.04019.16
5.4.190.0500.04018.97
5.4.180.0100.05319.07
5.4.170.0070.03719.18
5.4.160.0230.06719.14
5.4.150.1870.03718.87
5.4.140.1430.03716.42
5.4.130.0030.03316.29
5.4.120.0000.03716.29
5.4.110.0900.02716.45
5.4.100.1730.03316.45
5.4.90.1770.03716.45
5.4.80.1930.03316.44
5.4.70.1830.03316.53
5.4.60.2130.04016.34
5.4.50.1800.03316.44
5.4.40.1770.03716.33
5.4.30.1830.03016.43
5.4.20.1870.02716.48
5.4.10.1870.03316.21
5.4.00.2170.04015.94
5.3.290.2030.04714.57
5.3.280.1730.04314.69
5.3.270.1830.04314.65
5.3.260.2030.05014.56
5.3.250.2030.04314.44
5.3.240.1930.04714.56
5.3.230.2070.04714.46
5.3.220.1730.03314.50
5.3.210.1700.03714.44
5.3.200.2100.03714.41
5.3.190.1670.04014.55
5.3.180.0130.05314.40
5.3.170.0130.07014.52
5.3.160.1200.05714.55
5.3.150.2170.04314.49
5.3.140.2100.04314.41
5.3.130.2030.04314.64
5.3.120.1970.05014.54
5.3.110.1770.03714.38
5.3.100.1970.04313.88
5.3.90.2000.04013.90
5.3.80.1970.04713.86
5.3.70.2030.03713.88
5.3.60.2030.04313.88
5.3.50.0370.04013.80
5.3.40.0000.04713.88
5.3.30.0030.04313.91
5.3.20.0700.07013.64
5.3.10.1970.04313.61
5.3.00.1930.04013.52
5.2.170.1730.04011.31
5.2.160.1730.02711.16
5.2.150.1470.03011.00
5.2.140.1730.03310.98
5.2.130.1800.03011.04
5.2.120.1770.03310.95
5.2.110.1730.03311.25
5.2.100.1630.02711.18
5.2.90.0000.04010.94
5.2.80.0030.06310.94
5.2.70.0030.04711.03
5.2.60.1430.03010.89
5.2.50.1700.03710.95
5.2.40.1430.03710.85
5.2.30.1400.04010.82
5.2.20.1400.03710.90
5.2.10.1470.03010.77
5.2.00.1230.02710.61
5.1.60.1400.0239.89
5.1.50.1200.02710.10
5.1.40.1230.0279.92
5.1.30.1200.03010.25
5.1.20.1330.02310.43
5.1.10.1270.0239.93
5.1.00.1170.0339.93
5.0.50.0000.0408.56
5.0.40.0000.0238.34
5.0.30.0030.0308.12
5.0.20.0030.0178.20
5.0.10.0070.0138.06
5.0.00.0000.0308.09
4.4.90.0030.0108.06
4.4.80.0000.0138.06
4.4.70.0000.0278.06
4.4.60.0030.0138.06
4.4.50.0700.0208.06
4.4.40.0630.0208.06
4.4.30.0630.0138.06
4.4.20.0630.0178.06
4.4.10.0600.0138.06
4.4.00.0670.0208.06
4.3.110.0600.0178.06
4.3.100.0600.0178.06
4.3.90.0600.0178.06
4.3.80.0670.0238.06
4.3.70.0370.0308.06
4.3.60.0700.0178.06
4.3.50.0730.0208.06
4.3.40.0570.0278.06
4.3.30.0400.0238.06
4.3.20.0300.0178.06
4.3.10.0300.0178.06
4.3.00.0370.0178.06

preferences:
141.41 ms | 1394 KiB | 7 Q