3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace MyProject; const CONNECT_OK = 2; echo \MyProject\CONNECT_OK . "\n"; namespace AnotherProject; const CONNECT_OK = 1; echo \AnotherProject\CONNECT_OK . "\n"; namespace MyProject2 { const CONNECT_OK = 1; } namespace AnotherProject2 { const CONNECT_OK = 3; }

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.390.0230.05718.66
5.4.380.0230.06318.70
5.4.370.0270.06718.70
5.4.360.0170.05718.46
5.4.350.0070.06718.65
5.4.340.0270.04718.49
5.4.320.0170.05718.75
5.4.310.0100.06018.75
5.4.300.0170.06718.56
5.4.290.0400.05018.52
5.4.280.0230.05718.48
5.4.270.0230.05318.67
5.4.260.0200.05318.68
5.4.250.0300.04718.52
5.4.240.0230.05318.67
5.4.230.0370.04018.47
5.4.220.0200.05318.51
5.4.210.0230.05018.63
5.4.200.0170.06316.66
5.4.190.0300.04318.48
5.4.180.0200.05018.51
5.4.170.0230.04718.48
5.4.160.0170.05018.63
5.4.150.0230.06018.63
5.4.140.0170.05716.14
5.4.130.0270.06016.15
5.4.120.0200.05716.17
5.4.110.0270.04016.17
5.4.100.0130.05716.31
5.4.90.0270.04716.23
5.4.80.0330.03716.14
5.4.70.0270.05016.27
5.4.60.0200.05016.32
5.4.50.0200.05016.36
5.4.40.0270.05316.32
5.4.30.0230.04716.11
5.4.20.0200.05316.12
5.4.10.0200.04716.15
5.4.00.0270.04715.68
5.3.290.0270.05014.75
5.3.280.0100.06014.64
5.3.270.0170.05314.56
5.3.260.0200.05014.52
5.3.250.0270.04314.57
5.3.240.0100.06314.70
5.3.230.0170.05314.54
5.3.220.0230.04314.61
5.3.210.0300.04314.52
5.3.200.0130.05714.53
5.3.190.0230.05014.65
5.3.180.0100.06014.54
5.3.170.0170.05314.59
5.3.160.0270.04714.59
5.3.150.0200.07014.52
5.3.140.0130.07014.56
5.3.130.0230.05714.60
5.3.120.0170.06014.49
5.3.110.0270.04714.62
5.3.100.0170.06014.09
5.3.90.0130.05313.93
5.3.80.0170.05013.92
5.3.70.0100.05714.00
5.3.60.0230.04714.15
5.3.50.0070.06313.85
5.3.40.0200.05313.89
5.3.30.0170.05013.93
5.3.20.0230.04313.67
5.3.10.0230.04313.80
5.3.00.0130.06013.56
5.2.170.0200.03711.29
5.2.160.0100.05011.07
5.2.150.0170.04311.02
5.2.140.0130.04311.10
5.2.130.0200.03711.24
5.2.120.0100.04711.13
5.2.110.0170.03711.14
5.2.100.0230.04311.06
5.2.90.0130.04711.08
5.2.80.0130.05311.13
5.2.70.0130.04311.13
5.2.60.0200.04011.08
5.2.50.0130.04311.00
5.2.40.0230.03010.93
5.2.30.0100.04311.03
5.2.20.0100.04010.93
5.2.10.0070.04710.89
5.2.00.0130.04010.69
5.1.60.0170.0279.99
5.1.50.0130.03310.13
5.1.40.0170.03010.04
5.1.30.0130.03310.39
5.1.20.0030.04310.32
5.1.10.0170.03310.13
5.1.00.0230.03010.12
5.0.50.0070.0308.62
5.0.40.0100.0238.43
5.0.30.0070.0438.36
5.0.20.0070.0308.23
5.0.10.0100.0308.34
5.0.00.0100.0408.14
4.4.90.0100.0175.89
4.4.80.0030.0235.94
4.4.70.0000.0275.89
4.4.60.0170.0175.87
4.4.50.0130.0175.86
4.4.40.0130.0305.90
4.4.30.0100.0275.86
4.4.20.0100.0275.88
4.4.10.0070.0235.99
4.4.00.0030.0405.90
4.3.110.0000.0275.88
4.3.100.0070.0235.78
4.3.90.0070.0235.87
4.3.80.0070.0335.86
4.3.70.0000.0275.79
4.3.60.0100.0175.86
4.3.50.0000.0275.93
4.3.40.0070.0335.74
4.3.30.0100.0174.83
4.3.20.0030.0234.83
4.3.10.0100.0204.83
4.3.00.0030.0209.38

preferences:
141.8 ms | 1394 KiB | 7 Q