3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace { const A = 'in \\'; } namespace A { const A = 'in A'; } namespace A\B { const A = 'in A\\B'; } namespace A\B\C { echo 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)
8.5.70.0120.00716.48
8.5.60.0040.00416.91
8.5.50.0080.00916.52
8.5.30.0100.00719.61
8.5.20.0100.00720.21
8.5.10.0070.01116.57
8.5.00.0140.00819.70
8.4.210.0120.01019.41
8.4.180.0110.01219.52
8.4.170.0130.01121.71
8.4.160.0140.00821.93
8.4.150.0080.00416.77
8.4.140.0120.00917.31
8.4.130.0120.00818.65
8.4.120.0080.00323.96
8.4.110.0050.00422.21
8.4.100.0130.00817.59
8.4.90.0140.00617.73
8.4.80.0120.00817.64
8.4.70.0220.00517.65
8.4.60.0230.01017.54
8.4.50.0260.00617.36
8.4.40.0260.00817.27
8.4.30.0250.01018.23
8.4.20.0180.00817.69
8.4.10.0240.00618.40
8.3.300.0110.00918.18
8.3.290.0100.01020.84
8.3.280.0100.01118.28
8.3.270.0140.01116.42
8.3.260.0120.00816.51
8.3.250.0050.00417.29
8.3.240.0110.00817.09
8.3.230.0130.00816.60
8.3.220.0080.00717.30
8.3.210.0230.00616.54
8.3.200.0200.00716.59
8.3.190.0170.00816.71
8.3.180.0220.00817.41
8.3.170.0230.01118.53
8.3.160.0260.00617.61
8.3.150.0340.00616.82
8.3.140.0230.00716.61
8.3.130.0200.00617.36
8.3.120.0210.00918.53
8.3.110.0190.00618.57
8.3.100.0250.00717.26
8.3.90.0220.00621.56
8.3.80.0200.00817.41
8.3.70.0200.01317.44
8.3.60.0270.00817.38
8.3.50.0260.00816.66
8.3.40.0260.00419.56
8.3.30.0210.00518.85
8.3.20.0230.00821.47
8.3.10.0200.00821.56
8.3.00.0180.00421.48
8.2.300.0110.01022.22
8.2.290.0150.00320.51
8.2.280.0150.00817.26
8.2.270.0230.00516.70
8.2.260.0180.00517.33
8.2.250.0200.00417.36
8.2.240.0150.00916.89
8.2.230.0170.00619.39
8.2.220.0150.01020.31
8.2.210.0170.00821.49
8.2.200.0200.00517.18
8.2.190.0200.01116.39
8.2.180.0200.00716.30
8.2.170.0220.00718.15
8.2.160.0240.00520.30
8.2.150.0210.01021.47
8.2.140.0170.00821.41
8.2.130.0260.00821.42
8.2.120.0190.00721.51
8.2.110.0180.00721.62
8.2.100.0190.00621.59
8.2.90.0150.01021.65
8.2.80.0150.00821.53
8.2.70.0220.00321.59
8.2.60.0200.00421.56
8.2.50.0190.00621.41
8.2.40.0220.00721.46
8.2.30.0210.00521.49
8.2.20.0170.00621.59
8.2.10.0180.00621.59
8.2.00.0180.00521.51
8.1.340.0120.00825.34
8.1.330.0050.00420.11
8.1.320.0180.01116.03
8.1.310.0190.00516.47
8.1.300.0200.00416.09
8.1.290.0190.00623.52
8.1.280.0210.00721.06
8.1.270.0180.00421.38
8.1.260.0150.00521.47
8.1.250.0150.00221.38
8.1.240.0150.00421.43
8.1.230.0190.00721.38
8.1.220.0140.00921.44
8.1.210.0090.00721.42
8.1.200.0150.00621.32
8.1.190.0210.00621.32
8.1.180.0180.00821.42
8.1.170.0180.00621.48
8.1.160.0160.00721.37
8.1.150.0160.00621.43
8.1.140.0190.00621.45
8.1.130.0170.00621.35
8.1.120.0200.00821.37
8.1.110.0120.00421.43
8.1.100.0170.00721.49
8.1.90.0190.00521.55
8.1.80.0170.00821.42
8.1.70.0160.00721.44
8.1.60.0160.00721.52
8.1.50.0180.00721.57
8.1.40.0160.00621.49
8.1.30.0190.00421.61
8.1.20.0150.00721.42
8.1.10.0130.00821.50
8.1.00.0170.00621.44

preferences:
75.86 ms | 988 KiB | 5 Q