3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = '10'; $second = 10; $add = fn (int $a, int $b) => $a + $b; echo $add($first, $second);

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.10.0110.00916.56
8.5.00.0120.00919.90
8.4.160.0100.01122.05
8.4.150.0010.00114.05
8.4.140.0150.00617.73
8.4.130.0130.00717.60
8.4.120.0100.00720.73
8.4.110.0040.00618.86
8.4.100.0400.01117.77
8.4.90.0390.00917.76
8.4.80.0340.01217.63
8.4.70.0450.00517.90
8.4.60.0330.01217.76
8.4.50.0380.01317.68
8.4.40.0490.00617.24
8.4.30.0570.00917.25
8.4.20.0430.00817.38
8.4.10.0450.01317.30
8.3.290.0130.01222.53
8.3.280.0170.00518.25
8.3.270.0110.00916.45
8.3.260.0120.00416.41
8.3.250.0100.00817.15
8.3.240.0110.00816.62
8.3.230.0130.01016.57
8.3.220.0310.00416.39
8.3.210.0330.00616.29
8.3.200.0180.00416.55
8.3.190.0290.00516.15
8.3.180.0410.00616.44
8.3.170.0440.00716.33
8.3.160.0460.00816.43
8.3.150.0400.01116.60
8.3.140.0430.00816.52
8.3.130.0290.00416.39
8.3.120.0380.00916.57
8.3.110.0390.01016.23
8.3.100.0410.01116.24
8.3.90.0440.00816.63
8.3.80.0460.00616.52
8.3.70.0400.01116.41
8.3.60.0390.01016.47
8.3.50.0440.00716.48
8.3.40.0480.00617.49
8.3.30.0210.00517.63
8.3.20.0350.00917.52
8.3.10.0240.00417.66
8.3.00.0190.00117.59
8.2.300.0150.00620.54
8.2.290.0160.00316.89
8.2.280.0230.00116.54
8.2.270.0180.00316.55
8.2.260.0230.01016.28
8.2.250.0170.00816.56
8.2.240.0210.00516.57
8.2.230.0160.00316.74
8.2.220.0160.00716.29
8.2.210.0170.00316.42
8.2.200.0160.00416.32
8.2.190.0230.00616.18
8.2.180.0230.00316.52
8.2.170.0170.00417.38
8.2.160.0170.00517.60
8.2.150.0190.00317.75
8.2.140.0300.01717.37
8.2.130.0350.00517.42
8.2.120.0210.00417.57
8.2.110.0200.00317.49
8.2.100.0320.01117.39
8.2.90.0370.00417.59
8.2.80.0340.00717.37
8.2.70.0220.00817.38
8.2.60.0270.01017.63
8.2.50.0190.00417.48
8.2.40.0370.00717.29
8.2.30.0240.00517.35
8.2.20.0320.00917.43
8.2.10.0250.00417.50
8.2.00.0140.00617.55
8.1.340.0110.00921.84

preferences:
51.26 ms | 403 KiB | 5 Q