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 __call($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.0110.00318.30
8.3.50.0110.00716.24
8.3.40.0090.00618.59
8.3.30.0110.00418.66
8.3.20.0050.00321.65
8.3.10.0050.00321.95
8.3.00.0080.00019.69
8.2.180.0120.00616.38
8.2.170.0070.00722.96
8.2.160.0030.01019.46
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00720.36
8.2.120.0040.00426.35
8.2.110.0090.00020.33
8.2.100.0040.00717.72
8.2.90.0040.00419.23
8.2.80.0080.00017.97
8.2.70.0080.00017.50
8.2.60.0050.00317.93
8.2.50.0040.00418.10
8.2.40.0020.00520.55
8.2.30.0000.00719.06
8.2.20.0040.00418.04
8.2.10.0040.00418.05
8.2.00.0070.00017.98
8.1.280.0090.00925.92
8.1.270.0040.00423.82
8.1.260.0030.00326.35
8.1.250.0060.00328.09
8.1.240.0090.00023.77
8.1.230.0100.00023.86
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.11
8.1.180.0070.00018.10
8.1.170.0050.00318.46
8.1.160.0000.00718.61
8.1.150.0070.00018.46
8.1.140.0000.00719.32
8.1.130.0060.00318.71
8.1.120.0040.00317.31
8.1.110.0040.00417.27
8.1.100.0000.00717.33
8.1.90.0000.00817.35
8.1.80.0040.00417.28
8.1.70.0040.00417.23
8.1.60.0040.00417.48
8.1.50.0080.00017.37
8.1.40.0080.00017.43
8.1.30.0040.00417.56
8.1.20.0080.00017.48
8.1.10.0030.00717.53
8.1.00.0000.00717.32
8.0.300.0080.00019.87
8.0.290.0070.00016.75
8.0.280.0030.00318.48
8.0.270.0080.00017.32
8.0.260.0000.00719.05
8.0.250.0070.00017.01
8.0.240.0000.00816.86
8.0.230.0030.00516.84
8.0.220.0030.00316.93
8.0.210.0030.00516.79
8.0.200.0030.00516.96
8.0.190.0050.00316.89
8.0.180.0000.00716.90
8.0.170.0040.00416.93
8.0.160.0030.00316.89
8.0.150.0060.00616.84
8.0.140.0030.00316.76
8.0.130.0000.00613.35
8.0.120.0070.00016.86
8.0.110.0070.00016.91
8.0.100.0030.00616.75
8.0.90.0030.00516.84
8.0.80.0120.00316.95
8.0.70.0080.00016.93
8.0.60.0070.00016.95
8.0.50.0000.00716.91
8.0.30.0110.00817.04
8.0.20.0130.00817.40
8.0.10.0070.00016.86
8.0.00.0100.00716.85
7.4.330.0030.00315.55
7.4.320.0030.00316.35
7.4.300.0070.00016.45
7.4.290.0070.00016.45
7.4.280.0070.00016.34
7.4.270.0030.00316.46
7.4.260.0070.00016.42
7.4.250.0070.00016.27
7.4.240.0090.00016.51
7.4.230.0030.00316.63
7.4.220.0000.01816.44
7.4.210.0030.01116.38
7.4.200.0080.00016.55
7.4.160.0090.00616.39
7.4.150.0150.00417.40
7.4.140.0130.01217.86
7.4.130.0110.00716.43
7.4.120.0070.01416.52
7.4.110.0180.00316.48
7.4.100.0150.00416.30
7.4.90.0130.00616.73
7.4.80.0140.00319.39
7.4.70.0080.00816.45
7.4.60.0030.01316.52
7.4.50.0060.00916.44
7.4.40.0060.00916.43
7.4.30.0100.00616.52
7.4.00.0070.01014.85
7.3.330.0000.00513.17
7.3.320.0050.00013.17
7.3.310.0040.00416.13
7.3.300.0040.00416.22
7.3.290.0080.00916.34
7.3.280.0070.01216.27
7.3.270.0100.01317.40
7.3.260.0140.00716.46
7.3.250.0080.00916.35
7.3.240.0080.01216.44
7.3.230.0080.01116.44
7.3.210.0080.00816.32
7.3.200.0090.01216.25
7.3.190.0060.00916.31
7.3.180.0070.00716.50
7.3.170.0100.00716.54
7.3.160.0090.00616.25
7.3.120.0130.00314.65
7.3.110.0030.00714.29
7.3.100.0000.01214.48
7.3.90.0070.00314.67
7.3.80.0090.00614.77
7.3.70.0060.00914.71
7.3.60.0080.00414.63
7.3.50.0000.00814.71
7.3.40.0050.00314.83
7.3.30.0040.00814.64
7.3.20.0040.00816.54
7.3.10.0150.00016.47
7.3.00.0110.00416.52
7.2.330.0070.01016.63
7.2.320.0140.00616.57
7.2.310.0110.00716.23
7.2.300.0060.01016.64
7.2.290.0100.00616.20
7.2.240.0030.01015.06
7.2.230.0000.00814.89
7.2.220.0030.01014.65
7.2.210.0000.01314.76
7.2.200.0040.00815.05
7.2.190.0040.00415.00
7.2.180.0030.01014.83
7.2.170.0050.00514.59
7.2.160.0000.00914.89
7.2.150.0030.01016.81
7.2.140.0030.00916.70
7.2.130.0140.00016.86
7.2.120.0030.00916.79
7.2.110.0040.00816.75
7.2.100.0030.01016.65
7.2.90.0000.01516.52
7.2.80.0060.00916.79
7.2.70.0060.00616.54
7.2.60.0070.00716.76
7.2.50.0030.00816.75
7.2.40.0070.00416.84
7.2.30.0070.00716.83
7.2.20.0080.00416.45
7.2.10.0060.01216.88
7.2.00.0120.00016.73
7.1.330.0040.00815.72
7.1.320.0080.00315.40
7.1.310.0000.01515.52
7.1.300.0030.01015.59
7.1.290.0040.01115.62
7.1.280.0030.01015.46
7.1.270.0100.00315.62
7.1.260.0110.00415.69
7.1.250.0040.00715.69
7.1.200.0120.00315.65
7.1.70.0060.00616.70
7.1.60.0030.00717.14
7.1.50.0230.00734.60
7.1.40.0130.01334.30
7.1.30.0200.00734.29
7.1.20.0170.01334.29
7.1.10.0000.01016.34
7.1.00.0070.00716.50
7.0.200.0030.01016.43
7.0.190.0030.00716.23
7.0.180.0000.01316.10
7.0.170.0030.01016.10
7.0.160.0000.01316.11
7.0.150.0000.01316.06
7.0.140.0000.01016.16
7.0.130.0100.00316.25
7.0.120.0070.00716.25
7.0.110.0030.00716.12
7.0.100.0030.01016.08
7.0.90.0030.01016.25
7.0.80.0000.01016.09
7.0.70.0000.01315.99
7.0.60.0030.01015.92
7.0.50.0070.00716.05
7.0.40.0030.00716.14
7.0.30.0030.00716.21
7.0.20.0000.01316.19
7.0.10.0030.01016.11
7.0.00.0070.00716.31

preferences:
64.15 ms | 401 KiB | 5 Q