3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($bar) { var_dump($bar); static $bar = 0; $bar++; var_dump($bar); } foo(42); foo(24);

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.120.0050.00623.98
8.4.110.0110.00620.42
8.4.100.0070.00217.72
8.4.90.0130.00718.57
8.4.80.0090.00617.85
8.4.70.0100.01217.82
8.4.60.0130.00718.91
8.4.50.0090.01219.60
8.4.40.0090.00320.66
8.4.30.0090.00020.55
8.4.20.0070.01419.78
8.4.10.0030.00623.84
8.3.250.0090.00718.93
8.3.240.0140.00517.28
8.3.230.0130.00616.45
8.3.220.0100.00817.20
8.3.210.0100.00816.84
8.3.200.0050.00416.45
8.3.190.0100.00617.15
8.3.180.0070.01316.52
8.3.170.0090.00917.41
8.3.160.0030.01018.64
8.3.150.0110.00016.85
8.3.140.0070.01120.52
8.3.130.0040.00418.60
8.3.120.0080.00019.04
8.3.110.0040.00420.94
8.3.100.0090.00024.06
8.3.90.0070.00026.77
8.3.80.0040.00416.50
8.3.70.0110.01116.63
8.3.60.0100.01016.75
8.3.50.0140.00016.47
8.3.40.0120.00620.09
8.3.30.0070.01118.67
8.3.20.0110.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0130.00620.23
8.2.280.0050.00318.19
8.2.270.0130.00316.95
8.2.260.0040.00418.26
8.2.250.0000.00916.36
8.2.240.0080.00018.75
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0120.00626.77
8.2.200.0080.00016.38
8.2.190.0100.00716.58
8.2.180.0100.01316.32
8.2.170.0070.00719.00
8.2.160.0160.00322.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0030.01226.16
8.2.120.0090.00919.66
8.2.110.0060.00320.99
8.2.100.0000.01117.91
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.50
8.2.50.0040.00417.75
8.2.40.0000.00917.62
8.2.30.0090.00617.62
8.2.20.0050.01017.62
8.2.10.0110.00517.62
8.2.00.0100.00717.62
8.1.330.0120.00622.04
8.1.320.0070.00515.94
8.1.310.0150.00315.96
8.1.300.0030.00618.51
8.1.290.0060.00330.84
8.1.280.0080.00625.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.84
8.1.230.0070.00720.99
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0050.00517.23
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0040.00418.65
8.1.160.0120.00617.62
8.1.150.0130.00517.62
8.1.140.0120.00417.62
8.1.130.0110.00717.62
8.1.120.0140.00417.62
8.1.110.0110.00617.62
8.1.100.0110.00617.62
8.1.90.0110.00517.62
8.1.80.0060.01217.62
8.1.70.0110.00817.62
8.1.60.0090.00917.62
8.1.50.0090.00917.62
8.1.40.0100.00717.62
8.1.30.0090.00917.62
8.1.20.0150.00317.62
8.1.10.0090.00917.62
8.1.00.0130.00617.62
8.0.300.0040.00419.97
8.0.290.0000.00816.75
8.0.280.0070.01117.62
8.0.270.0130.00417.62
8.0.260.0140.00217.62
8.0.250.0110.00617.62
8.0.240.0120.00617.62
8.0.230.0130.00617.62
8.0.220.0100.00717.62
8.0.210.0100.00517.62
8.0.200.0110.00517.62
8.0.190.0070.00917.62
8.0.180.0160.00017.62
8.0.170.0080.00817.62
8.0.160.0180.00017.62
8.0.150.0110.00617.62
8.0.140.0060.01117.62
8.0.130.0090.00617.62
8.0.120.0120.00317.62
8.0.110.0110.00517.62
8.0.100.0120.00317.62
8.0.90.0120.00317.62
8.0.80.0060.01017.62
8.0.70.0110.00417.62
8.0.60.0110.00417.62
8.0.50.0080.00817.62
8.0.30.0080.00817.62
8.0.20.0110.00617.62
8.0.10.0120.00317.62

preferences:
71.87 ms | 403 KiB | 5 Q