3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A\B\C { class A { } } namespace C\B\A { class B { const test = 'A\B\C\A'; } print_r( new B::test ); }

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.320.0520.04115.84
5.4.310.0340.03515.87
5.4.300.0070.03515.69
5.4.290.0450.03115.75
5.4.280.0400.04215.75
5.4.270.0350.03815.80
5.4.260.0450.04615.62
5.4.250.0310.03515.77
5.4.240.0560.03115.74
5.4.230.0620.04015.77
5.4.220.0420.03515.67
5.4.210.0440.03415.79
5.4.200.0470.03315.61
5.4.190.0600.03615.68
5.4.180.0440.03315.69
5.4.170.0440.04015.69
5.4.160.0370.04015.63
5.4.150.0750.03015.84
5.4.140.0310.03214.24
5.4.130.0490.03214.31
5.4.120.0680.03414.23
5.4.110.0510.03414.24
5.4.100.0340.03214.18
5.4.90.0620.03214.24
5.4.80.0560.03814.31
5.4.70.0420.03414.21
5.4.60.0460.03414.20
5.4.50.0310.04614.20
5.4.40.0500.03514.26
5.4.30.0330.03314.27
5.4.20.0450.03614.26
5.4.10.0520.03514.24
5.4.00.0380.03513.70
5.3.290.0590.04013.69
5.3.280.0620.03913.64
5.3.270.0410.03813.67
5.3.260.0710.03413.61
5.3.250.0710.03313.66
5.3.240.0520.03413.70
5.3.230.0570.03213.65
5.3.220.0770.03313.61
5.3.210.0660.04013.62
5.3.200.0430.03713.61
5.3.190.0540.03813.61
5.3.180.0650.03613.61
5.3.170.0570.02813.62
5.3.160.0660.03713.62
5.3.150.0760.03613.62
5.3.140.0590.03513.55
5.3.130.0680.03613.60
5.3.120.0520.03813.63
5.3.110.0710.03913.64
5.3.100.0770.03313.12
5.3.90.0570.04113.11
5.3.80.0440.03313.00
5.3.70.0700.03813.05
5.3.60.0560.03213.11
5.3.50.0440.03513.06
5.3.40.0220.04412.98
5.3.30.0180.03812.91
5.3.20.0440.03512.68
5.3.10.0530.02912.69
5.3.00.0360.03612.68
5.2.170.0250.03810.17
5.2.160.0550.03410.25
5.2.150.0280.03110.09
5.2.140.0380.03210.18
5.2.130.0520.02810.09
5.2.120.0360.02510.20
5.2.110.0400.02810.05
5.2.100.0380.02810.05
5.2.90.0550.03010.04
5.2.80.0430.02810.20
5.2.70.0290.03010.16
5.2.60.0290.03210.02
5.2.50.0320.03410.01
5.2.40.0580.0259.98
5.2.30.0440.03510.00
5.2.20.0420.0309.98
5.2.10.0350.0319.97
5.2.00.0420.0299.71
5.1.60.0290.0309.04
5.1.50.0430.0238.96
5.1.40.0430.0269.07
5.1.30.0380.0259.34
5.1.20.0250.0229.46
5.1.10.0380.0289.16
5.1.00.0230.0299.11
5.0.50.0190.0217.69
5.0.40.0210.0237.62
5.0.30.0180.0307.53
5.0.20.0190.0217.51
5.0.10.0060.0197.50
5.0.00.0190.0317.50
4.4.90.0110.0166.77
4.4.80.0200.0136.76
4.4.70.0160.0206.76
4.4.60.0220.0146.76
4.4.50.0300.0126.77
4.4.40.0180.0246.74
4.4.30.0170.0176.76
4.4.20.0110.0206.80
4.4.10.0250.0196.80
4.4.00.0150.0216.76
4.3.110.0320.0136.71
4.3.100.0250.0126.71
4.3.90.0180.0146.70
4.3.80.0240.0236.67
4.3.70.0200.0106.70
4.3.60.0140.0116.69
4.3.50.0310.0186.70
4.3.40.0310.0216.65
4.3.30.0050.0176.02
4.3.20.0030.0206.01
4.3.10.0060.0195.99
4.3.00.0170.0138.77

preferences:
137.14 ms | 1394 KiB | 7 Q