3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f=function($a)use(&$f){ if($a==0){ return $f(1); } return 'a'; } var_dump($f(0));

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.0170.07320.39
5.5.240.0230.07320.07
5.4.400.0230.06319.21
5.4.390.0270.05019.25
5.4.380.0270.05719.06
5.4.370.0130.04719.31
5.4.360.0270.04718.83
5.4.350.0270.06019.06
5.4.340.0230.06318.87
5.4.320.0270.03319.09
5.4.310.0230.05318.86
5.4.300.0230.04719.23
5.4.290.0270.03719.00
5.4.280.0230.05019.08
5.4.270.0200.03718.95
5.4.260.0130.04319.08
5.4.250.0230.05719.20
5.4.240.0270.04319.21
5.4.230.0330.06319.22
5.4.220.0270.04018.98
5.4.210.0270.03318.99
5.4.200.0200.04719.23
5.4.190.0270.06319.14
5.4.180.0370.06018.94
5.4.170.0230.07319.12
5.4.160.0230.03318.98
5.4.150.0170.04018.98
5.4.140.0270.04316.49
5.4.130.0230.06316.29
5.4.120.0200.04016.38
5.4.110.0200.05016.63
5.4.100.0270.06016.54
5.4.90.0230.04016.41
5.4.80.0230.04716.48
5.4.70.0330.03716.54
5.4.60.0200.06316.54
5.4.50.0270.06716.43
5.4.40.0230.03316.17
5.4.30.0270.07716.53
5.4.20.0300.04016.42
5.4.10.0270.06716.14
5.4.00.0270.06015.90
5.3.290.0270.04014.91
5.3.280.0230.07714.56
5.3.270.0300.07314.70
5.3.260.0300.06714.68
5.3.250.0230.04014.69
5.3.240.0400.08314.68
5.3.230.0230.07314.53
5.3.220.0170.04714.48
5.3.210.0200.07314.47
5.3.200.0230.07314.54
5.3.190.0200.04014.71
5.3.180.0200.03714.48
5.3.170.0300.04714.54
5.3.160.0230.04714.55
5.3.150.0200.04014.54
5.3.140.0270.03014.46
5.3.130.0270.04014.63
5.3.120.0270.04314.60
5.3.110.0370.05714.52
5.3.100.0300.05714.03
5.3.90.0270.06013.92
5.3.80.0270.04313.93
5.3.70.0270.06313.99
5.3.60.0230.07313.91
5.3.50.0270.06313.95
5.3.40.0230.03313.86
5.3.30.0330.06013.82
5.3.20.0300.05313.66
5.3.10.0200.05313.57
5.3.00.0200.05713.71
5.2.170.0200.06012.15
5.2.160.0230.03312.15
5.2.150.0230.06012.15
5.2.140.0270.05712.15
5.2.130.0170.06012.15
5.2.120.0170.03012.15
5.2.110.0130.03012.15
5.2.100.0200.04012.15
5.2.90.0170.06012.15
5.2.80.0230.04712.15
5.2.70.0230.06012.15
5.2.60.0230.04012.15
5.2.50.0130.03712.15
5.2.40.0200.05712.15
5.2.30.0270.02712.15
5.2.20.0170.05712.15
5.2.10.0170.04312.15
5.2.00.0200.03312.15
5.1.60.0200.05012.15
5.1.50.0230.02712.15
5.1.40.0130.05012.15
5.1.30.0100.04012.15
5.1.20.0170.03312.15
5.1.10.0130.02712.15
5.1.00.0170.05012.15
5.0.50.0170.04012.15
5.0.40.0130.03712.15
5.0.30.0100.04012.15
5.0.20.0100.02312.15
5.0.10.0100.02712.15
5.0.00.0100.04312.15
4.4.90.0030.02312.15
4.4.80.0070.03712.15
4.4.70.0070.03012.15
4.4.60.0100.01312.15
4.4.50.0130.03012.15
4.4.40.0070.04712.15
4.4.30.0070.01712.15
4.4.20.0100.02312.15
4.4.10.0130.02312.15
4.4.00.0070.02312.15
4.3.110.0070.01712.15
4.3.100.0070.02012.15
4.3.90.0070.01312.15
4.3.80.0070.02312.15
4.3.70.0030.01712.15
4.3.60.0100.01712.15
4.3.50.0100.02312.15
4.3.40.0100.02012.15
4.3.30.0030.02012.15
4.3.20.0070.01312.15
4.3.10.0030.01712.15
4.3.00.0000.02012.15

preferences:
142.02 ms | 1394 KiB | 7 Q