3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "[abc - def - ghi - jkl]"; preg_match('/\[([^\]]*)\]/', $str, $re); $strs = split(' - ', $re[1]); print_r($strs); $t = array('(1) 1 = aseptische Eingriffe' ,'(1) 1 = mit HLM' ,'(1) nein' ,'(2) 2 = Vorhofflimmern' ,'(3) 2 = ja, COPD ohne Dauermedikation' ,'(3) 2 = ja, innerhalb der letzten 3 Wochen' ,'(4) 3 = 3-Gefäßerkrankung' ,'(4) 4 = Patient mit inaktivierender Allgemeinerkrankung, die eine ständige Lebensbedrohung darstellt' ,'(5) 4 = ja, länger als 91 Tage' ,'(9) 9 = Entlassung in eine Rehabilitationseinrichtung'); function mapExportValue($exportvalue) { $reg = '\(([^\)]+)\)'; }

Here you find the average performance (time & memory) of each version. A greyed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0040.00819.57
7.1.100.0000.01118.05
7.1.70.0040.00717.23
7.1.60.0070.01819.13
7.1.50.0110.01117.30
7.1.00.0030.09322.41
7.0.200.0100.00016.52
7.0.60.0030.04319.95
7.0.50.0100.08017.99
7.0.40.0100.03720.04
7.0.30.0270.07020.09
7.0.20.0270.04020.18
7.0.10.0000.08320.22
7.0.00.0130.07320.11
5.6.210.0070.07320.55
5.6.200.0070.08318.27
5.6.190.0200.06320.57
5.6.180.0070.05020.48
5.6.170.0300.05020.56
5.6.160.0000.04720.39
5.6.150.0100.07718.15
5.6.140.0070.06718.14
5.6.130.0070.08018.18
5.6.120.0130.07721.13
5.6.110.0000.04320.90
5.6.100.0030.09020.98
5.6.90.0070.07021.11
5.6.80.0100.06020.54
5.5.350.3730.04020.41
5.5.340.0100.06717.96
5.5.330.0000.04320.25
5.5.320.0570.06720.34
5.5.310.0130.04020.26
5.5.300.0030.06717.94
5.5.290.0070.05017.93
5.5.280.0100.08320.73
5.5.270.0070.07320.80
5.5.260.0100.06720.77
5.5.250.0070.03720.79
5.5.240.0170.07320.04
5.4.450.0470.08019.31
5.4.440.0930.06019.48
5.4.430.0630.06319.47
5.4.420.0770.06019.46
5.4.410.0630.06319.25
5.4.400.0130.06018.99
5.4.390.0200.08719.16
5.4.380.0230.05718.87
5.4.370.0230.07719.16
5.4.360.0170.07719.23
5.4.350.0130.07719.15
5.4.340.0270.06319.26
5.4.320.0200.05719.28
5.4.310.0230.06319.26
5.4.300.0230.05019.25
5.4.290.0300.06719.05
5.4.280.0170.06719.13
5.4.270.0130.05718.99
5.4.260.0170.05719.28
5.4.250.0230.07019.25
5.4.240.0270.06019.14
5.4.230.0300.04719.37
5.4.220.0100.06019.05
5.4.210.0230.05018.85
5.4.200.0200.05719.25
5.4.190.0230.05718.86
5.4.180.0230.06718.86
5.4.170.0300.06019.11
5.4.160.0270.04319.04
5.4.150.0200.05719.03
5.4.140.0230.06716.39
5.4.130.0200.06316.52
5.4.120.0170.06016.54
5.4.110.0330.05316.43
5.4.100.0170.05716.57
5.3.290.0230.05714.77
5.3.280.0200.05314.64
5.3.270.0230.07014.68
5.3.260.0200.05314.52
5.3.250.0100.06014.71
5.3.240.0130.07714.63
5.3.230.0270.05714.57
5.3.220.0170.05014.69
5.3.210.0200.05714.46
5.3.200.0230.05014.85