3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function myStaticFunction() { echo "I'm declared static! Calling me statically works great.\n"; } public function myNonStaticFunction() { echo "I'm not static, if you try to call me statically you'll get a deprecated warning\n"; } public function __callStatic($name, $args) { echo 123;exit; } } foo::myStaticFunction(); foo::myNonStaticFunction();

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.0090.00618.55
8.3.50.0000.01416.24
8.3.40.0110.00418.42
8.3.30.0040.01118.71
8.3.20.0000.00821.63
8.3.10.0080.00021.63
8.3.00.0030.00619.44
8.2.180.0140.00716.50
8.2.170.0110.00422.96
8.2.160.0100.00319.34
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.75
8.2.110.0100.00021.06
8.2.100.0130.00017.66
8.2.90.0000.00819.10
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0040.00417.43
8.2.50.0050.00318.10
8.2.40.0080.00020.61
8.2.30.0040.00419.07
8.2.20.0000.00818.02
8.2.10.0000.00817.81
8.2.00.0040.00417.80
8.1.280.0150.00325.92
8.1.270.0000.00723.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.98
8.1.230.0040.00717.63
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0080.00017.00
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0080.00018.59
8.1.160.0040.00418.79
8.1.150.0040.00418.75
8.1.140.0040.00419.49
8.1.130.0030.00718.66
8.1.120.0040.00417.30
8.1.110.0030.00517.26
8.1.100.0050.00317.29
8.1.90.0000.00817.34
8.1.80.0060.00317.32
8.1.70.0000.00717.34
8.1.60.0000.00917.31
8.1.50.0040.00417.27
8.1.40.0000.01117.31
8.1.30.0040.00417.41
8.1.20.0000.00817.50
8.1.10.0040.00717.42
8.1.00.0050.00217.20
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0000.00818.31
8.0.270.0030.00317.04
8.0.260.0000.00619.06
8.0.250.0030.00316.89
8.0.240.0030.00616.76
8.0.230.0000.00716.85
8.0.220.0030.00316.82
8.0.210.0070.00016.84
8.0.200.0030.00616.86
8.0.190.0000.00816.77
8.0.180.0040.00416.75
8.0.170.0000.00816.78
8.0.160.0050.00216.84
8.0.150.0000.00816.73
8.0.140.0040.00416.75
8.0.130.0050.00013.20
8.0.120.0000.00816.80
8.0.110.0000.00716.81
8.0.100.0040.00416.77
8.0.90.0040.00416.80
8.0.80.0000.01516.82
8.0.70.0040.00416.66
8.0.60.0000.00716.67
8.0.50.0000.00716.77
8.0.30.0100.00616.96
8.0.20.0090.01017.40
8.0.10.0040.00417.01
8.0.00.0100.00716.67
7.4.330.0050.00015.55
7.4.320.0000.00616.39
7.4.300.0030.00316.44
7.4.290.0030.00316.33
7.4.280.0040.00416.57
7.4.270.0040.00416.29
7.4.260.0070.00016.41
7.4.250.0080.00016.39
7.4.240.0040.00416.43
7.4.230.0030.00316.35
7.4.220.0100.01016.43
7.4.210.0070.00716.47
7.4.200.0040.00416.62
7.4.160.0090.01116.41
7.4.150.0150.00917.40
7.4.140.0100.00817.86
7.4.130.0070.01116.29
7.4.120.0120.00616.40
7.4.110.0060.01516.32
7.4.100.0100.00716.73
7.4.90.0030.01416.41
7.4.80.0070.01019.39
7.4.70.0100.00616.43
7.4.60.0130.00416.51
7.4.50.0100.00716.34
7.4.40.0110.01116.39
7.4.30.0070.01016.52
7.4.00.0080.00614.59
7.3.330.0030.00313.14
7.3.320.0030.00313.14
7.3.310.0040.00416.34
7.3.300.0000.00716.22
7.3.290.0070.00716.25
7.3.280.0090.00816.32
7.3.270.0060.01317.40
7.3.260.0110.00716.40
7.3.250.0110.00616.41
7.3.240.0110.00816.26
7.3.230.0160.00916.38
7.3.210.0130.00316.33
7.3.200.0030.01216.29
7.3.190.0150.00316.36
7.3.180.0080.00816.56
7.3.170.0140.00316.32
7.3.160.0130.00316.59
7.3.10.0070.00716.66
7.3.00.0100.00716.49
7.2.330.0110.00816.35
7.2.320.0140.00316.25
7.2.310.0100.01316.39
7.2.300.0090.01516.58
7.2.290.0070.01016.68
7.2.130.0090.00616.84
7.2.120.0030.00916.77
7.2.110.0030.00916.97
7.2.100.0070.00716.81
7.2.90.0050.00516.76
7.2.80.0040.00416.96
7.2.70.0070.00716.80
7.2.60.0030.00816.78
7.2.50.0040.00816.51
7.2.40.0030.01316.70
7.2.30.0080.00316.47
7.2.20.0000.01416.96
7.2.10.0130.00316.86
7.2.00.0050.01217.89
7.1.250.0090.00315.55
7.1.200.0030.00715.65
7.1.70.0060.00616.70
7.1.60.0080.00417.25
7.1.50.0670.01032.75
7.1.40.0400.01332.43
7.1.30.0630.01032.34
7.1.20.0530.01732.70
7.1.10.0070.00716.23
7.1.00.0100.00716.30
7.0.200.0040.01116.61
7.0.190.0430.00314.43
7.0.180.0030.01316.09
7.0.170.0400.01314.24
7.0.160.0300.01014.15
7.0.150.0330.01014.29
7.0.140.0030.01016.06
7.0.130.0030.01316.21
7.0.120.0230.01014.59
7.0.110.0000.01016.13
7.0.100.0270.00714.32
7.0.90.0200.01314.33
7.0.80.0070.00316.08
7.0.70.0030.00715.84
7.0.60.0270.01714.30
7.0.50.0030.01016.05
7.0.40.0030.01016.27
7.0.30.0000.01316.24
7.0.20.0070.00316.35
7.0.10.0070.01015.96
7.0.00.0100.00716.19

preferences:
60.85 ms | 400 KiB | 5 Q