3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); var_dump(ereg('.','php://input',$a)); var_dump($a); ?>
based on LiNCA

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).
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.3.10.0040.00416.55
7.3.00.0060.00316.61
7.2.130.0080.00416.96
7.2.120.0080.00416.34
7.2.110.0030.00616.89
7.2.100.0070.00716.77
7.2.90.0070.00716.61
7.2.80.0110.00016.75
7.2.70.0070.00716.90
7.2.60.0080.00616.85
7.2.50.0000.01516.84
7.2.40.0030.00716.81
7.2.30.0000.01416.82
7.2.20.0040.01216.85
7.2.10.0070.00316.72
7.2.00.0030.00918.03
7.1.250.0000.01215.61
7.1.240.0070.00315.63
7.1.230.0100.00315.56
7.1.220.0100.00315.63
7.1.210.0030.00715.73
7.1.200.0070.00415.28
7.1.190.0040.00815.78
7.1.180.0060.00915.58
7.1.170.0030.00815.25
7.1.160.0040.00415.57
7.1.150.0040.00415.77
7.1.140.0000.01415.62
7.1.130.0100.00315.48
7.1.120.0030.00915.77
7.1.110.0030.01315.68
7.1.100.0540.00515.60
7.1.90.0000.01015.70
7.1.80.0100.00315.55
7.1.70.0060.00716.43
7.1.60.0090.01117.49
7.1.50.0050.00816.18
7.1.40.0000.00815.59
7.1.30.0000.01315.61
7.1.20.0070.00715.70
7.1.10.0000.01015.36
7.1.00.0030.04119.03
7.0.330.0040.00715.43
7.0.320.0050.00315.36
7.0.310.0040.00715.31
7.0.300.0000.00815.32
7.0.290.0030.01015.48
7.0.280.0050.00515.00
7.0.270.0000.00815.45
7.0.260.0030.00315.29
7.0.250.0000.00715.27
7.0.240.0060.00315.25
7.0.230.0080.00415.18
7.0.220.0000.00815.27
7.0.210.0040.01015.14
7.0.200.0140.00414.76
7.0.190.0030.01015.06
7.0.180.0040.00815.30
7.0.170.0000.01015.36
7.0.160.0060.00615.43
7.0.150.0070.00715.20
7.0.140.0040.00815.14
7.0.130.0040.00815.05
7.0.120.0060.00915.29
7.0.110.0000.00915.32
7.0.100.0060.00615.39
7.0.90.0100.00315.32
7.0.80.0000.00815.28
7.0.70.0070.00715.36
7.0.60.0100.04317.63
7.0.50.0030.04116.38
7.0.40.0040.04316.68
7.0.30.0170.04516.84
7.0.20.0070.03416.63
7.0.10.0120.04216.81
7.0.00.0050.03216.69
5.6.380.0060.00614.38
5.6.370.0030.00514.20
5.6.360.0030.00514.20
5.6.350.0070.00713.98
5.6.340.0000.00814.41
5.6.330.0130.00313.88
5.6.320.0060.00914.00
5.6.310.0030.01013.88
5.6.300.0070.00714.42
5.6.290.0070.00314.07
5.6.280.0040.02917.75
5.6.270.0040.01114.19
5.6.260.0120.00314.25
5.6.250.0050.00814.10
5.6.240.0070.00714.15
5.6.230.0030.00614.37
5.6.220.0070.00314.09
5.6.210.0070.02217.34
5.6.200.0020.02716.19
5.6.190.0100.04217.24
5.6.180.0150.04117.43
5.6.170.0140.03817.28
5.6.160.0070.02217.39
5.6.150.0070.04016.09
5.6.140.0070.03016.00
5.6.130.0090.02116.22
5.6.120.0090.02717.48
5.6.110.0050.04517.59
5.6.100.0120.01717.56
5.6.90.0030.03617.45
5.6.80.0070.02217.24
5.6.70.0070.00713.88
5.6.60.0110.00414.39
5.6.50.0000.01314.08
5.6.40.0040.01114.19
5.6.30.0030.01414.09
5.6.20.0060.00613.95
5.6.10.0040.00714.00
5.6.00.0070.00714.15
5.5.380.0030.00711.02
5.5.370.0030.00610.64
5.5.360.0040.01111.03
5.5.350.0180.03815.68
5.5.340.0030.02714.35
5.5.330.0120.03715.71
5.5.320.0110.02015.65
5.5.310.0150.03015.72
5.5.300.0020.04714.34
5.5.290.0050.04514.46
5.5.280.0040.04116.00
5.5.270.0100.04015.90
5.5.260.0080.04015.96
5.5.250.0070.04515.72
5.5.240.0110.03615.49
5.5.230.0060.00010.82
5.5.220.0060.00010.87
5.5.210.0030.00310.54
5.5.200.0060.00010.84
5.5.190.0040.00410.72
5.5.180.0000.00610.61
5.5.170.0000.01110.70
5.5.160.0030.00310.92
5.5.150.0030.00910.57
5.5.140.0000.00710.58
5.5.130.0030.00610.74
5.5.120.0060.00610.96
5.5.110.0030.00910.45
5.5.100.0100.00310.43
5.5.90.0000.01110.61
5.5.80.0070.00010.94
5.5.70.0030.00310.84
5.5.60.0030.00310.90
5.5.50.0030.00710.67
5.5.40.0030.00610.96
5.5.30.0030.00310.75
5.5.20.0060.00910.43
5.5.10.0060.00610.81
5.5.00.0030.00310.66
5.4.450.0330.04515.13
5.4.440.0470.03715.18
5.4.430.0420.03514.93
5.4.420.0470.03015.23
5.4.410.0430.04215.05
5.4.400.0440.03715.07
5.4.390.0430.03615.09
5.4.380.0440.03514.93
5.4.370.0400.02814.94
5.4.360.0400.03814.74
5.4.350.0410.03114.88
5.4.340.0450.03314.97
5.4.330.0030.00910.55
5.4.320.0430.03314.92
5.4.310.0470.03414.69
5.4.300.0420.04314.90
5.4.290.0500.03614.94
5.4.280.0570.02714.92
5.4.270.0150.04314.74
5.4.260.0130.03214.72
5.4.250.0170.04114.75
5.4.240.0530.02815.10
5.4.230.0350.03314.95
5.4.220.0470.04015.07
5.4.210.0470.03314.79
5.4.200.0510.03314.87
5.4.190.0410.03414.87
5.4.180.0450.02815.09
5.4.170.0380.03514.83
5.4.160.0420.04415.05
5.4.150.0400.03814.93
5.4.140.0420.03013.46
5.4.130.0420.03013.63
5.4.120.0420.03513.56
5.4.110.0420.03813.49
5.4.100.0480.02513.53
5.4.90.0370.02513.54
5.4.80.0380.03813.64
5.4.70.0350.03013.52
5.4.60.0400.03713.57
5.4.50.0260.03213.39
5.4.40.0130.02713.50
5.4.30.0080.03113.53
5.4.20.0100.04313.51
5.4.10.0130.03913.45
5.4.00.0120.03513.23
5.3.290.0330.06014.61
5.3.280.0100.08014.59
5.3.270.0100.08714.69
5.3.260.0170.08014.61
5.3.250.0330.06014.39
5.3.240.0270.07314.55
5.3.230.0230.06314.57
5.3.220.0230.06314.42
5.3.210.0130.07014.54
5.3.200.0170.06314.40
5.3.190.0130.05714.40