3v4l.org

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

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.140.0130.00917.34
8.4.130.0080.00717.89
8.4.120.0120.00722.36
8.4.110.0110.00822.39
8.4.100.0080.00917.49
8.4.90.0100.00417.50
8.4.80.0130.00717.32
8.4.70.0120.00417.62
8.4.60.0040.00618.53
8.4.50.0030.00617.45
8.4.40.0040.01817.47
8.4.30.0000.00820.21
8.4.20.0130.00717.84
8.4.10.0090.00023.53
8.3.270.0110.00816.59
8.3.260.0080.00616.41
8.3.250.0060.00318.65
8.3.240.0050.01116.42
8.3.230.0120.00716.29
8.3.220.0150.00316.95
8.3.210.0080.01016.55
8.3.200.0050.00416.71
8.3.190.0100.00717.21
8.3.180.0090.01116.75
8.3.170.0060.01216.69
8.3.160.0060.01216.74
8.3.150.0060.01216.35
8.3.140.0060.01218.89
8.3.130.0030.01018.05
8.3.120.0070.01118.69
8.3.110.0070.01016.45
8.3.100.0080.00016.10
8.3.50.0080.00016.25
8.2.290.0100.00820.10
8.2.280.0120.00718.44
8.2.270.0110.00716.45
8.2.260.0090.00916.66
8.2.250.0080.00016.61
8.2.240.0080.00017.00
8.2.230.0150.00016.09
8.2.220.0060.00316.30
8.1.330.0100.01018.30
8.1.320.0140.00816.20
8.1.310.0040.00415.86
8.1.300.0100.00717.85
8.1.60.0150.00417.46
8.1.50.0190.00017.25
8.1.40.0150.00317.38
8.1.30.0190.00017.55
8.1.20.0130.00617.37
8.1.10.0140.00517.25
8.1.00.0120.00617.27
8.0.190.0070.00716.89
8.0.180.0110.00516.71
8.0.170.0120.00316.68
8.0.160.0140.00016.79
8.0.150.0110.00416.71
8.0.140.0130.00016.75
8.0.130.0130.00316.71
8.0.120.0110.00316.66
8.0.110.0070.00716.67
8.0.100.0120.00416.68
8.0.90.0070.00716.82
8.0.80.0100.00516.78
8.0.70.0070.00716.76
8.0.60.0140.00016.64
8.0.50.0100.00616.88
8.0.30.0160.00016.76
8.0.20.0100.00716.75
8.0.10.0110.00516.80
7.4.290.0080.00816.38
7.4.280.0000.00816.37
7.4.270.0170.00016.46
7.4.260.0130.00616.43
7.4.250.0110.00416.35
7.4.240.0070.00716.30
7.4.230.0140.00016.34
7.4.220.0140.00316.35
7.4.210.0130.00316.44
7.4.200.0040.01116.44
7.4.190.0080.00616.44
7.4.180.0050.00816.38
7.4.160.0170.00016.52
7.4.150.0070.00716.34
7.4.140.0080.00416.19
7.4.130.0100.00616.21
7.4.120.0100.00516.21
7.4.110.0150.00016.08
7.4.100.0100.00516.24
7.4.90.0060.00616.05
7.4.80.0100.00616.11
7.4.70.0100.00416.29
7.4.60.0130.00316.27
7.4.50.0080.00316.10
7.4.40.0050.00516.07
7.4.30.0080.00416.08
7.4.20.0040.00816.21
7.4.10.0060.00316.35
7.4.00.0060.00616.23

preferences:
34.19 ms | 403 KiB | 5 Q