3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Biz { trait Bar {}; } namespace Foo { trait Bar {}; } namespace Foo { use Biz\Bar; class Baz { use Bar; } $a = new Baz(); var_dump($a); }

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.380.0170.05718.68
5.4.370.0180.05218.59
5.4.360.0220.05318.65
5.4.350.0280.04318.73
5.4.340.0130.05518.62
5.4.320.0230.04818.63
5.4.310.0150.06218.60
5.4.300.0300.05218.73
5.4.290.0230.05718.77
5.4.280.0230.05018.80
5.4.270.0150.05518.76
5.4.260.0180.05318.72
5.4.250.0220.05018.68
5.4.240.0170.05718.80
5.4.230.0180.06218.50
5.4.220.0150.06218.76
5.4.210.0150.05518.69
5.4.200.0220.06316.79
5.4.190.0220.05818.51
5.4.180.0150.06518.56
5.4.170.0170.05818.77
5.4.160.0170.05318.63
5.4.150.0250.05718.68
5.4.140.0200.06016.23
5.4.130.0220.04716.20
5.4.120.0200.05716.26
5.4.110.0270.04316.26
5.4.100.0250.04716.29
5.4.90.0200.05316.32
5.4.80.0130.05316.22
5.4.70.0130.05516.19
5.4.60.0180.06016.26
5.4.50.0230.05016.24
5.4.40.0220.04716.33
5.4.30.0120.05516.19
5.4.20.0170.04816.29
5.4.10.0150.05216.23
5.4.00.0220.04715.79
5.3.290.0230.05014.70
5.3.280.0070.06314.48
5.3.270.0180.05714.64
5.3.260.0200.05214.70
5.3.250.0180.05014.70
5.3.240.0230.05314.58
5.3.230.0070.06214.59
5.3.220.0180.06214.52
5.3.210.0200.05514.57
5.3.200.0150.05314.60
5.3.190.0250.04514.61
5.3.180.0120.05714.53
5.3.170.0100.05814.60
5.3.160.0130.05214.55
5.3.150.0120.05214.62
5.3.140.0200.05314.62
5.3.130.0150.05714.49
5.3.120.0170.05514.51
5.3.110.0220.05314.53
5.3.100.0150.05514.03
5.3.90.0130.05814.11
5.3.80.0150.05213.96
5.3.70.0250.04514.02
5.3.60.0200.05213.98
5.3.50.0180.05013.88
5.3.40.0170.05313.88
5.3.30.0200.04313.92
5.3.20.0250.04213.70
5.3.10.0170.05013.75
5.3.00.0150.05513.58
5.2.170.0200.04711.13
5.2.160.0120.04311.12
5.2.150.0150.04311.19
5.2.140.0100.04311.12
5.2.130.0150.03811.08
5.2.120.0080.04311.11
5.2.110.0100.04511.13
5.2.100.0100.04211.08
5.2.90.0100.04511.14
5.2.80.0150.04011.12
5.2.70.0200.03711.15
5.2.60.0170.03811.02
5.2.50.0100.04711.07
5.2.40.0070.04510.93
5.2.30.0120.04211.02
5.2.20.0130.04011.08
5.2.10.0100.04010.95
5.2.00.0120.04010.71
5.1.60.0080.03710.00
5.1.50.0100.03310.03
5.1.40.0080.03510.01
5.1.30.0150.03710.38
5.1.20.0120.03710.37
5.1.10.0130.04010.13
5.1.00.0120.03310.11
5.0.50.0100.0278.58
5.0.40.0080.0258.47
5.0.30.0150.0378.30
5.0.20.0070.0288.27
5.0.10.0100.0258.22
5.0.00.0100.0408.18
4.4.90.0080.0185.90
4.4.80.0080.0205.87
4.4.70.0070.0205.85
4.4.60.0120.0175.87
4.4.50.0030.0255.83
4.4.40.0050.0375.83
4.4.30.0080.0225.87
4.4.20.0120.0205.94
4.4.10.0050.0235.95
4.4.00.0070.0405.91
4.3.110.0080.0235.80
4.3.100.0080.0225.79
4.3.90.0100.0175.81
4.3.80.0070.0325.81
4.3.70.0050.0255.78
4.3.60.0100.0185.80
4.3.50.0050.0235.80
4.3.40.0030.0375.79
4.3.30.0050.0254.75
4.3.20.0020.0284.72
4.3.10.0050.0184.72
4.3.00.0070.01714.60

preferences:
141.33 ms | 993 KiB | 7 Q