3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace ns; function strlen($s){ return -1; } namespace foo; use function ns\strlen; 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.03718.56
5.4.360.0070.03718.57
5.4.350.0130.03318.71
5.4.340.0030.04318.73
5.4.320.0100.03718.70
5.4.310.0170.03018.53
5.4.300.0070.03718.45
5.4.290.0070.04018.79
5.4.280.0070.04318.64
5.4.270.0070.04018.47
5.4.260.0070.04318.73
5.4.250.0070.04018.57
5.4.240.0070.04018.53
5.4.230.0070.03718.50
5.4.220.0000.04718.54
5.4.210.0070.04018.65
5.4.200.0070.03716.50
5.4.190.0100.04018.67
5.4.180.0130.03318.71
5.4.170.0100.03718.76
5.4.160.0070.03718.77
5.4.150.0100.03318.54
5.4.140.0100.03316.19
5.4.130.0070.03316.13
5.4.120.0130.03016.20
5.4.110.0100.03316.29
5.4.100.0030.04716.12
5.4.90.0130.03316.43
5.4.80.0170.03316.40
5.4.70.0130.04016.12
5.4.60.0130.03316.21
5.4.50.0170.03716.25
5.4.40.0070.04016.11
5.4.30.0070.03716.23
5.4.20.0070.04316.24
5.4.10.0000.04016.20
5.4.00.0030.03715.61
5.3.290.0030.04314.80
5.3.280.0070.04014.64
5.3.270.0070.04314.77
5.3.260.0000.05014.60
5.3.250.0030.05014.64
5.3.240.0070.04014.54
5.3.230.0030.04714.76
5.3.220.0100.03714.59
5.3.210.0100.04014.52
5.3.200.0100.04014.50
5.3.190.0070.04014.61
5.3.180.0170.03014.75
5.3.170.0100.03714.54
5.3.160.0170.03014.50
5.3.150.0030.04014.48
5.3.140.0070.04014.60
5.3.130.0070.04314.46
5.3.120.0170.03014.64
5.3.110.0100.05314.61
5.3.100.0130.03014.00
5.3.90.0030.04313.95
5.3.80.0100.03313.95
5.3.70.0030.04014.11
5.3.60.0070.03713.92
5.3.50.0030.04713.92
5.3.40.0100.03714.11
5.3.30.0070.03713.89
5.3.20.0070.03713.66
5.3.10.0100.04013.77
5.3.00.0170.03013.70
5.2.170.0070.04011.06
5.2.160.0070.03311.20
5.2.150.0130.03011.12
5.2.140.0030.03311.21
5.2.130.0170.02711.00
5.2.120.0130.02711.05
5.2.110.0130.03011.18
5.2.100.0170.02311.19
5.2.90.0070.03011.05
5.2.80.0030.03311.01
5.2.70.0100.03011.17
5.2.60.0070.03011.13
5.2.50.0030.04010.99
5.2.40.0000.03310.91
5.2.30.0070.03010.88
5.2.20.0100.02310.88
5.2.10.0030.03710.82
5.2.00.0100.02710.68
5.1.60.0000.03310.07
5.1.50.0000.0309.91
5.1.40.0030.0239.98
5.1.30.0100.02310.37
5.1.20.0030.03310.38
5.1.10.0030.02710.19
5.1.00.0070.03010.07
5.0.50.0030.0208.57
5.0.40.0030.0208.32
5.0.30.0000.0338.33
5.0.20.0030.0208.16
5.0.10.0000.0238.22
5.0.00.0030.0378.21
4.4.90.0070.0135.81
4.4.80.0000.0205.84
4.4.70.0030.0205.91
4.4.60.0070.0135.88
4.4.50.0100.0075.84
4.4.40.0070.0275.80
4.4.30.0070.0105.93
4.4.20.0070.0135.87
4.4.10.0000.0175.93
4.4.00.0070.0205.79
4.3.110.0100.0135.73
4.3.100.0030.0205.82
4.3.90.0070.0135.75
4.3.80.0000.0275.80
4.3.70.0000.0175.73
4.3.60.0000.0175.74
4.3.50.0000.0175.85
4.3.40.0030.0235.70
4.3.30.0000.0174.53
4.3.20.0000.0174.49
4.3.10.0000.0174.46
4.3.00.0070.0176.66

preferences:
145.82 ms | 942 KiB | 7 Q