3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { function strlen($s){ return -1; } } namespace foo { var_dump(strlen("foo")); }

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.4.370.0200.03318.42
5.4.360.0100.04318.37
5.4.350.0100.04718.63
5.4.340.0130.04018.43
5.4.320.0200.04318.48
5.4.310.0100.03718.43
5.4.300.0030.04018.48
5.4.290.0070.03718.59
5.4.280.0130.04318.55
5.4.270.0070.04318.55
5.4.260.0070.03718.63
5.4.250.0130.03318.63
5.4.240.0100.04018.76
5.4.230.0170.03018.57
5.4.220.0030.05018.58
5.4.210.0170.03318.47
5.4.200.0100.03716.55
5.4.190.0100.04018.53
5.4.180.0130.03718.36
5.4.170.0100.04718.46
5.4.160.0130.03718.57
5.4.150.0070.04718.40
5.4.140.0130.03716.13
5.4.130.0130.03316.28
5.4.120.0130.03716.16
5.4.110.0070.03716.18
5.4.100.0070.04016.16
5.4.90.0130.03016.24
5.4.80.0100.03716.30
5.4.70.0070.03716.20
5.4.60.0030.04316.14
5.4.50.0170.04016.21
5.4.40.0170.03316.20
5.4.30.0130.03716.12
5.4.20.0100.04316.13
5.4.10.0100.04016.18
5.4.00.0070.04315.70
5.3.290.0130.04014.64
5.3.280.0100.04314.63
5.3.270.0100.04314.50
5.3.260.0070.06314.57
5.3.250.0100.04314.63
5.3.240.0100.04014.66
5.3.230.0130.03714.74
5.3.220.0130.04014.66
5.3.210.0170.03714.54
5.3.200.0170.03714.54
5.3.190.0130.04014.66
5.3.180.0070.04014.54
5.3.170.0100.04314.72
5.3.160.0200.04314.58
5.3.150.0030.04714.48
5.3.140.0030.05014.73
5.3.130.0170.04014.53
5.3.120.0170.03314.58
5.3.110.0070.03714.51
5.3.100.0070.04714.02
5.3.90.0070.03714.04
5.3.80.0030.04014.05
5.3.70.0100.03714.05
5.3.60.0000.04014.12
5.3.50.0000.04013.93
5.3.40.0070.03714.01
5.3.30.0070.03713.86
5.3.20.0100.03313.76
5.3.10.0030.03713.70
5.3.00.0100.04313.62
5.2.170.0030.03011.12
5.2.160.0000.03311.11
5.2.150.0030.03711.06
5.2.140.0130.04011.14
5.2.130.0170.02711.07
5.2.120.0130.02711.00
5.2.110.0100.03011.19
5.2.100.0000.03311.04
5.2.90.0070.02711.01
5.2.80.0070.02710.96
5.2.70.0000.03311.05
5.2.60.0030.03011.14
5.2.50.0030.03310.94
5.2.40.0070.02710.86
5.2.30.0000.03311.06
5.2.20.0030.03710.91
5.2.10.0070.03010.88
5.2.00.0100.03010.70
5.1.60.0130.0209.96
5.1.50.0100.0239.91
5.1.40.0030.0309.89
5.1.30.0130.02310.28
5.1.20.0070.02710.46
5.1.10.0130.02710.18
5.1.00.0170.02710.13
5.0.50.0000.0278.55
5.0.40.0000.0238.36
5.0.30.0100.0278.30
5.0.20.0100.0178.37
5.0.10.0070.0238.14
5.0.00.0030.0338.17
4.4.90.0030.0175.86
4.4.80.0030.0175.79
4.4.70.0030.0175.84
4.4.60.0070.0135.84
4.4.50.0000.0205.80
4.4.40.0100.0205.83
4.4.30.0070.0135.84
4.4.20.0070.0135.86
4.4.10.0100.0105.82
4.4.00.0070.0275.85
4.3.110.0000.0205.77
4.3.100.0070.0135.74
4.3.90.0070.0235.75
4.3.80.0000.0335.75
4.3.70.0000.0205.71
4.3.60.0070.0175.89
4.3.50.0170.0035.86
4.3.40.0070.0305.80
4.3.30.0000.0204.58
4.3.20.0070.0134.51
4.3.10.0070.0174.41
4.3.00.0000.0236.88

preferences:
140.87 ms | 1398 KiB | 7 Q