3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C{static function __callStatic($n,$p){static$_;return($f=&$_[$n])?$f():$f=$p[0];}} C::now(function(){ return new DateTime(); }); var_dump(C::now()); var_dump(C::now());

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.0100.01018.43
8.3.50.0130.00618.18
8.3.40.0080.00819.09
8.3.30.0150.00018.89
8.3.20.0040.00420.35
8.3.10.0040.00420.82
8.3.00.0000.00721.72
8.2.180.0070.01116.63
8.2.170.0140.00022.96
8.2.160.0070.00722.11
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00021.09
8.2.120.0070.00026.35
8.2.110.0030.00719.39
8.2.100.0060.00618.03
8.2.90.0050.00317.95
8.2.80.0040.00417.97
8.2.70.0090.00017.88
8.2.60.0000.00818.16
8.2.50.0040.00418.07
8.2.40.0060.00318.10
8.2.30.0040.00418.08
8.2.20.0080.00018.05
8.2.10.0040.00418.24
8.2.00.0000.00818.18
8.1.280.0110.00425.92
8.1.270.0060.00322.19
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0120.00022.08
8.1.230.0040.00720.87
8.1.220.0050.00317.88
8.1.210.0000.00818.87
8.1.200.0100.00017.48
8.1.190.0000.00917.48
8.1.180.0080.00018.10
8.1.170.0070.00018.76
8.1.160.0000.00818.92
8.1.150.0030.00518.85
8.1.140.0030.00519.70
8.1.130.0030.00317.78
8.1.120.0040.00417.69
8.1.110.0000.00717.66
8.1.100.0000.00717.65
8.1.90.0000.00717.68
8.1.80.0040.00417.71
8.1.70.0040.00417.72
8.1.60.0060.00317.79
8.1.50.0060.00317.66
8.1.40.0050.00317.63
8.1.30.0040.00417.76
8.1.20.0050.00317.64
8.1.10.0020.00517.66
8.1.00.0040.00417.74
8.0.300.0000.00720.04
8.0.290.0030.00516.88
8.0.280.0030.00318.40
8.0.270.0030.00316.95
8.0.260.0050.00217.42
8.0.250.0030.00317.14
8.0.240.0000.00717.04
8.0.230.0000.00717.16
8.0.220.0030.00317.07
8.0.210.0000.00717.03
8.0.200.0030.00617.16
8.0.190.0040.00417.03
8.0.180.0000.00717.00
8.0.170.0040.00417.10
8.0.160.0030.00316.99
8.0.150.0000.00717.09
8.0.140.0000.00817.08
8.0.130.0000.00613.49
8.0.120.0050.00317.09
8.0.110.0070.00016.98
8.0.100.0070.00016.98
8.0.90.0030.00517.03
8.0.80.0030.01617.13
8.0.70.0070.00017.08
8.0.60.0040.00417.11
8.0.50.0050.00317.16
8.0.30.0110.00617.21
8.0.20.0080.01117.49
8.0.10.0040.00417.24
8.0.00.0090.01016.90
7.4.330.0020.00216.74
7.4.320.0000.00616.61
7.4.300.0000.00616.69
7.4.290.0070.00316.65
7.4.280.0000.00716.64
7.4.270.0000.00716.73
7.4.260.0050.00516.55
7.4.250.0040.00416.75
7.4.240.0000.00816.73
7.4.230.0030.00316.65
7.4.220.0090.01116.75
7.4.210.0060.00816.72
7.4.200.0000.00716.77
7.4.160.0040.01216.70
7.4.150.0150.00317.40
7.4.140.0060.01217.86
7.4.130.0070.01016.78
7.4.120.0080.01116.59
7.4.110.0150.00316.61
7.4.100.0140.01016.58
7.4.90.0110.00716.70
7.4.80.0070.01019.39
7.4.70.0070.01116.83
7.4.60.0070.01016.64
7.4.50.0070.00716.55
7.4.40.0060.01216.78
7.4.30.0140.00416.61
7.4.00.0060.00615.25
7.3.330.0000.00513.48
7.3.320.0060.00013.50
7.3.310.0030.00316.53
7.3.300.0000.00716.37
7.3.290.0060.01116.52
7.3.280.0070.01016.50
7.3.270.0110.00917.40
7.3.260.0070.01016.83
7.3.250.0110.00816.68
7.3.240.0040.01416.65
7.3.230.0110.00716.51
7.3.210.0070.01116.66
7.3.200.0060.01216.63
7.3.190.0100.01316.79
7.3.180.0130.00716.66
7.3.170.0160.00016.75
7.3.160.0050.01116.67
7.2.330.0100.01616.55
7.2.320.0040.01816.93
7.2.310.0070.01016.94
7.2.300.0120.00916.97
7.2.290.0100.00716.98
7.2.60.0030.00917.17
7.2.00.0040.01119.70
7.1.200.0210.01515.37
7.1.100.0080.01118.14
7.1.70.0000.01017.09
7.1.60.0090.01519.19
7.1.50.0040.00817.21
7.1.00.0070.07322.37
7.0.200.0600.00714.84
7.0.60.0130.08321.73
7.0.50.0130.04317.85
7.0.40.0030.04320.05
7.0.30.0170.05320.25
7.0.20.0300.07020.33
7.0.10.0100.06320.09
7.0.00.0070.05720.29
5.6.280.0070.06320.79
5.6.210.0030.08320.75
5.6.200.0030.05018.25
5.6.190.0070.05720.34
5.6.180.0230.03720.28
5.6.170.0500.07020.46
5.6.160.0030.05320.52
5.6.150.0030.05318.29
5.6.140.0070.04318.21
5.6.130.0070.03718.21
5.6.120.0070.04320.91
5.6.110.0170.06721.12
5.6.100.0070.03721.03
5.6.90.0070.06720.88
5.6.80.0030.08020.36
5.5.350.0300.03720.43
5.5.340.0070.08318.07
5.5.330.0100.07720.40
5.5.320.0630.06020.36
5.5.310.0200.04320.17
5.5.300.0030.04717.95
5.5.290.0070.07718.02
5.5.280.0130.06720.78
5.5.270.0070.08720.86
5.5.260.0000.08020.76
5.5.250.0100.06320.62
5.5.240.0030.06020.14

preferences:
51.54 ms | 401 KiB | 5 Q