3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $arr = array("test"); function bar( $str ){ if ( is_callable( self::$this->arr[0] ) ){ self::{$this->arr[0]}( $str ); } } static function test($var) { echo "Testing: $var\n"; } } (new Foo)->bar("bla");

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.00716.38
8.3.50.0070.01017.92
8.3.40.0090.00618.65
8.3.30.0070.00718.85
8.3.20.0050.00320.13
8.3.10.0030.00618.95
8.3.00.0000.00823.70
8.2.180.0150.00016.63
8.2.170.0070.00722.96
8.2.160.0100.00322.13
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00320.78
8.2.120.0040.00426.35
8.2.110.0030.00622.01
8.2.100.0090.00317.80
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0000.00919.65
8.2.50.0000.01118.09
8.2.40.0060.00322.18
8.2.30.0000.00719.38
8.2.20.0020.00517.66
8.2.10.0040.00417.86
8.2.00.0000.00717.86
8.1.280.0100.00725.92
8.1.270.0060.00322.06
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0090.01217.36
8.1.230.0090.00317.83
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00017.13
8.1.180.0060.00318.10
8.1.170.0040.00418.46
8.1.160.0070.00020.59
8.1.150.0090.00018.82
8.1.140.0040.00419.46
8.1.130.0070.00017.62
8.1.120.0000.00717.23
8.1.110.0000.00917.38
8.1.100.0050.00317.23
8.1.90.0050.00317.33
8.1.80.0040.00417.32
8.1.70.0030.00317.32
8.1.60.0080.00017.51
8.1.50.0060.00317.36
8.1.40.0030.00517.41
8.1.30.0030.00517.61
8.1.20.0030.00617.52
8.1.10.0080.00017.53
8.1.00.0000.00817.43
8.0.300.0070.00018.77
8.0.290.0080.00016.63
8.0.280.0030.00318.26
8.0.270.0040.00417.10
8.0.260.0030.00617.11
8.0.250.0070.00016.96
8.0.240.0030.00316.84
8.0.230.0030.00316.82
8.0.220.0030.00616.90
8.0.210.0070.00016.87
8.0.200.0030.00316.86
8.0.190.0000.00816.84
8.0.180.0000.00716.95
8.0.170.0080.00016.90
8.0.160.0040.00416.86
8.0.150.0000.00716.82
8.0.140.0000.00916.64
8.0.130.0030.00313.31
8.0.120.0000.00816.91
8.0.110.0030.00316.73
8.0.100.0040.00417.00
8.0.90.0070.00016.77
8.0.80.0030.01216.83
8.0.70.0040.00416.77
8.0.60.0070.00016.95
8.0.50.0040.00416.91
8.0.30.0110.00817.12
8.0.20.0150.00417.40
8.0.10.0040.00416.86
8.0.00.0100.01116.66
7.4.330.0000.00516.70
7.4.320.0060.00016.37
7.4.300.0070.00016.51
7.4.290.0000.00616.35
7.4.280.0040.00416.36
7.4.270.0070.00016.56
7.4.260.0030.00316.56
7.4.250.0040.00416.41
7.4.240.0000.00716.45
7.4.230.0070.00016.45
7.4.220.0070.01016.62
7.4.210.0090.01216.64
7.4.200.0000.00716.29
7.4.160.0120.00816.39
7.4.150.0100.00717.40
7.4.140.0090.00917.86
7.4.130.0150.00516.49
7.4.120.0090.00716.34
7.4.110.0130.00416.58
7.4.100.0150.00316.57
7.4.90.0090.00916.61
7.4.80.0130.00519.39
7.4.70.0100.00716.50
7.4.60.0120.00316.27
7.4.50.0060.00916.43
7.4.40.0150.00016.51
7.4.30.0100.01116.36
7.4.00.0140.00014.75
7.3.330.0030.00313.32
7.3.320.0050.00013.43
7.3.310.0080.00016.43
7.3.300.0040.00416.40
7.3.290.0110.00316.36
7.3.280.0100.00916.35
7.3.270.0000.01617.40
7.3.260.0100.00716.26
7.3.250.0100.00916.34
7.3.240.0030.01316.46
7.3.230.0160.00316.51
7.3.210.0150.00716.37
7.3.200.0060.00919.39
7.3.190.0100.00616.48
7.3.180.0030.01616.34
7.3.170.0030.01416.34
7.3.160.0100.00716.42
7.2.330.0090.00916.63
7.2.320.0060.01016.39
7.2.310.0130.01016.62
7.2.300.0070.01016.36
7.2.290.0120.00916.64
7.2.60.0090.00616.84
7.2.00.0040.01119.28
7.1.200.0070.00715.39
7.1.100.0030.00618.20
7.1.70.0000.00816.75
7.1.60.0170.00719.40
7.1.50.0070.01116.84
7.1.00.0030.07722.32
7.0.200.0070.00414.99
7.0.60.0270.07321.71
7.0.50.0100.05717.86
7.0.40.0000.05320.32
7.0.30.0370.07320.26
7.0.20.0330.07720.23
7.0.10.0070.05020.25
7.0.00.0030.05320.24
5.6.280.0000.03320.82
5.6.210.0170.07020.62
5.6.200.0100.07718.18
5.6.190.0030.09320.50
5.6.180.0270.03320.41
5.6.170.0270.04720.51
5.6.160.0000.04320.46
5.6.150.0070.04018.27
5.6.140.0030.06018.14
5.6.130.0100.07718.15
5.6.120.0170.05721.11
5.6.110.0100.08320.96
5.6.100.0070.08321.04
5.6.90.0030.04020.98
5.6.80.0130.05020.38
5.5.350.0170.02720.45
5.5.340.0030.07017.93
5.5.330.0100.08020.25
5.5.320.0570.04320.36
5.5.310.0200.08020.29
5.5.300.0070.08318.01
5.5.290.0070.06717.95
5.5.280.0170.07320.90
5.5.270.0100.05020.87
5.5.260.0170.07320.80
5.5.250.0170.05320.70
5.5.240.0270.05320.04

preferences:
45.72 ms | 400 KiB | 5 Q