3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public static function create() { return new self(); } } $cb = Bar::create(...); var_dump($cb());

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.30.0120.00619.26
8.5.20.0120.00621.35
8.5.10.0080.00918.64
8.5.00.0120.00920.08
8.4.180.0140.00819.56
8.4.170.0140.00820.43
8.4.160.0130.00920.49
8.4.150.0090.00416.83
8.4.140.0120.00917.57
8.4.130.0100.00318.83
8.4.120.0030.00620.32
8.4.110.0140.00618.70
8.4.100.0120.00818.77
8.4.90.0120.00822.16
8.4.80.0060.00219.11
8.4.70.0130.00918.83
8.4.60.0050.00918.82
8.4.50.0060.01020.53
8.4.40.0200.00017.41
8.4.30.0130.00620.33
8.4.20.0110.00820.31
8.4.10.0030.00619.64
8.3.300.0090.01220.68
8.3.290.0120.01320.70
8.3.280.0110.00918.24
8.3.270.0160.00618.41
8.3.260.0030.00516.45
8.3.250.0080.01216.98
8.3.240.0110.00716.57
8.3.230.0110.00516.14
8.3.220.0040.00418.94
8.3.210.0100.00818.38
8.3.200.0050.00316.61
8.3.190.0110.00717.01
8.3.180.0060.00218.20
8.3.170.0060.01217.16
8.3.160.0000.01816.62
8.3.150.0090.00920.46
8.3.140.0030.00717.34
8.3.130.0080.00018.28
8.3.120.0090.00618.20
8.3.110.0040.00416.55
8.3.50.0050.00318.27
8.2.300.0120.00920.33
8.2.290.0100.00220.33
8.2.280.0090.00922.54
8.2.270.0150.00417.27
8.2.260.0080.00018.32
8.2.250.0040.00420.60
8.2.240.0120.00616.50
8.2.230.0030.00616.38
8.1.340.0090.00720.04
8.1.330.0070.01218.24
8.1.320.0060.01416.22
8.1.310.0060.00318.30
8.1.300.0070.01116.36
8.1.00.0160.00617.42
8.0.130.0040.00716.80
8.0.120.0100.00316.80
8.0.110.0130.00616.72
8.0.100.0140.00416.69
8.0.90.0130.00816.82
8.0.80.0220.00016.86
8.0.70.0200.00316.61
8.0.60.0140.00716.89
8.0.50.0130.00916.78
8.0.30.0180.00416.75
8.0.20.0110.01016.88
8.0.10.0200.00316.91
8.0.00.0070.00416.96
7.4.270.0040.00416.45
7.4.260.0220.00016.41
7.4.250.0150.00816.41
7.4.240.0170.00616.32
7.4.230.0230.00216.34
7.4.220.0140.00716.49
7.4.210.0160.00616.39
7.4.200.0200.00016.32
7.4.190.0160.00416.30
7.4.180.0130.00416.38
7.4.160.0150.00416.41
7.4.150.0100.01016.27
7.4.140.0170.00216.29
7.4.130.0140.00816.26
7.4.120.0130.00816.13
7.4.110.0160.00516.23
7.4.100.0150.00616.35
7.4.90.0170.00616.21
7.4.80.0150.00616.22
7.4.70.0180.00316.22
7.4.60.0170.00316.23
7.4.50.0170.00316.16
7.4.40.0130.00516.07
7.4.30.0220.00016.29
7.4.20.0110.00316.22
7.4.10.0030.00916.12
7.4.00.0000.00916.32
7.3.330.0070.00016.25
7.3.320.0130.00316.10
7.3.310.0080.00816.17
7.3.300.0170.00316.18
7.3.290.0150.00616.16
7.3.280.0140.00715.98
7.3.270.0110.00416.09
7.3.260.0190.00516.27
7.3.250.0150.00716.21
7.3.240.0160.00216.11
7.3.230.0140.00016.20
7.3.220.0180.00016.11
7.3.210.0170.00016.15
7.3.200.0150.00316.29
7.3.190.0140.00416.01
7.3.180.0100.01016.12
7.3.170.0230.00016.04
7.3.160.0190.00316.22
7.3.150.0210.00016.20
7.3.140.0150.00616.15
7.3.130.0240.00016.03

preferences:
43.48 ms | 968 KiB | 5 Q