3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const A = 2 << -1; const B = 2 << 0; } print_r(Foo::A); print_r(Foo::B);

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.3.60.0070.01018.40
8.3.50.0080.00616.39
8.3.40.0040.01118.76
8.3.30.0040.01118.85
8.3.20.0060.00320.29
8.3.10.0070.00021.86
8.3.00.0040.00420.80
8.2.180.0060.00918.05
8.2.170.0100.00322.96
8.2.160.0110.00422.11
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0070.00020.70
8.2.120.0080.00026.35
8.2.110.0080.00319.22
8.2.100.0110.00017.72
8.2.90.0060.00319.13
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0030.00618.10
8.2.40.0030.00522.26
8.2.30.0040.00421.07
8.2.20.0000.00818.06
8.2.10.0050.00317.94
8.2.00.0040.00418.14
8.1.280.0130.00325.92
8.1.270.0050.00323.91
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00419.10
8.1.230.0030.00719.04
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00717.11
8.1.180.0040.00418.10
8.1.170.0050.00318.61
8.1.160.0000.00718.97
8.1.150.0080.00020.57
8.1.140.0000.00719.51
8.1.130.0000.00718.83
8.1.120.0050.00217.41
8.1.110.0000.00717.39
8.1.100.0000.00717.44
8.1.90.0040.00417.36
8.1.80.0030.00417.28
8.1.70.0050.00317.43
8.1.60.0040.00417.56
8.1.50.0040.00417.35
8.1.40.0040.00417.46
8.1.30.0080.00017.55
8.1.20.0040.00417.46
8.1.10.0040.00417.43
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.37
8.0.270.0070.00017.26
8.0.260.0030.00316.80
8.0.250.0030.00316.92
8.0.240.0040.00416.82
8.0.230.0000.00716.98
8.0.220.0000.00716.96
8.0.210.0040.00417.00
8.0.200.0030.00317.03
8.0.190.0050.00317.06
8.0.180.0000.00816.87
8.0.170.0040.00416.99
8.0.160.0070.00016.95
8.0.150.0030.00716.97
8.0.140.0030.00316.80
8.0.130.0040.00313.32
8.0.120.0000.00816.89
8.0.110.0040.00417.00
8.0.100.0000.00716.85
8.0.90.0000.00716.96
8.0.80.0130.00916.91
8.0.70.0040.00317.06
8.0.60.0040.00416.83
8.0.50.0020.00516.95
8.0.30.0100.00817.14
8.0.20.0050.01417.40
8.0.10.0000.00816.84
8.0.00.0000.01716.70
7.4.330.0000.00515.55
7.4.320.0030.00316.42
7.4.300.0000.00616.43
7.4.290.0030.00616.30
7.4.280.0000.00716.36
7.4.270.0030.00316.38
7.4.260.0070.00016.32
7.4.250.0040.00416.31
7.4.240.0070.00016.48
7.4.230.0080.00016.54
7.4.220.0140.00716.48
7.4.210.0110.00316.45
7.4.200.0040.00416.44
7.4.160.0090.01116.34
7.4.150.0050.01517.40
7.4.140.0100.01117.86
7.4.130.0240.00316.39
7.4.120.0090.01016.54
7.3.330.0000.00713.25
7.3.320.0050.00013.29
7.3.310.0070.00016.25
7.3.300.0030.00316.38
7.3.290.0070.00916.25
7.3.280.0080.00716.25
7.3.270.0100.01417.40
7.3.260.0110.00516.27
7.3.250.0130.00816.44
7.3.240.0080.00816.46
7.1.60.0470.01033.22

preferences:
48.44 ms | 401 KiB | 5 Q