3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { define('B\CONSTANT', 123); define('B\NULL', 456); define('GLOBAL_CONSTANT', 789); } namespace B { var_dump(NULL); var_dump(CONSTANT); var_dump(\B\NULL); var_dump(GLOBAL_CONSTANT); }

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.4.150.0010.00114.05
8.4.140.0120.01617.32
8.4.130.0100.00617.54
8.4.120.0120.00720.38
8.4.110.0080.00722.50
8.4.100.0120.01017.57
8.4.90.0110.00918.52
8.4.80.0060.00319.30
8.4.70.0050.00417.54
8.4.60.0130.00720.54
8.4.50.0080.01617.57
8.4.40.0160.00017.84
8.4.30.0080.00018.99
8.4.20.0070.01317.93
8.4.10.0090.00019.32
8.3.270.0110.00916.61
8.3.260.0090.01016.29
8.3.250.0090.00920.84
8.3.240.0110.00816.66
8.3.230.0050.00516.62
8.3.220.0110.00817.21
8.3.210.0080.00618.58
8.3.200.0050.00416.49
8.3.190.0130.00616.57
8.3.180.0090.00216.81
8.3.170.0030.00620.44
8.3.160.0000.00918.49
8.3.150.0120.00816.55
8.3.140.0040.00417.09
8.3.130.0130.00718.39
8.3.120.0080.01120.63
8.3.110.0060.00320.94
8.3.100.0040.00416.66
8.3.90.0080.00018.18
8.3.80.0070.00419.36
8.3.70.0120.00316.58
8.3.60.0110.00418.27
8.3.50.0110.00718.65
8.3.40.0140.00020.48
8.3.30.0070.01020.20
8.3.20.0000.00824.18
8.3.10.0000.00824.66
8.3.00.0130.00618.84
8.2.290.0120.00720.38
8.2.280.0090.00918.18
8.2.270.0070.01118.97
8.2.260.0040.01118.20
8.2.250.0080.00018.51
8.2.240.0150.00418.89
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0060.00618.04
8.2.190.0100.00716.58
8.2.180.0150.00616.50
8.2.170.0060.00918.77
8.2.160.0110.00322.96
8.2.150.0000.00825.66
8.2.140.0030.00524.66
8.2.130.0070.01119.03
8.2.120.0150.00418.89
8.2.110.0170.00318.69
8.2.100.0040.01119.02
8.2.90.0060.01018.84
8.2.80.0110.01118.72
8.2.70.0060.00918.77
8.2.60.0100.01018.63
8.2.50.0200.00018.61
8.2.40.0110.01118.70
8.2.30.0100.01018.53
8.2.20.0120.00618.57
8.2.10.0100.00618.57
8.2.00.0120.00618.53
8.1.330.0150.00421.89
8.1.320.0100.00815.95
8.1.310.0080.00018.41
8.1.300.0090.00919.28
8.1.290.0060.00318.88
8.1.280.0080.01125.92
8.1.270.0090.00022.08
8.1.260.0030.00521.95
8.1.250.0070.01122.20
8.1.240.0070.01118.45
8.1.230.0040.01118.54
8.1.220.0150.00618.57
8.1.210.0110.00418.43
8.1.200.0130.00318.51
8.1.190.0140.00418.58
8.1.180.0090.00918.43
8.1.170.0180.00418.38
8.1.160.0150.00018.34
8.1.150.0120.00318.39
8.1.140.0040.01118.49
8.1.130.0040.00418.68
8.1.120.0080.00018.55
8.1.110.0050.00318.50
8.1.100.0050.00318.41
8.1.90.0030.00618.56
8.1.80.0060.00318.38
8.1.70.0060.00318.39
8.1.60.0060.00318.54
8.1.50.0040.00418.50
8.1.40.0040.00418.67
8.1.30.0040.00418.69
8.1.20.0040.00418.77
8.1.10.0100.00018.49
8.1.00.0060.00318.55

preferences:
32.11 ms | 403 KiB | 5 Q