3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $arr = array("test"); function bar( $str ){ var_dump(self::arr[0]); if( is_callable( self::arr[0],true ) ){ (self::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.00416.75
8.3.50.0120.00621.94
8.3.40.0070.00718.84
8.3.30.0110.00418.67
8.3.20.0000.00820.29
8.3.10.0030.00718.56
8.3.00.0050.00323.48
8.2.180.0070.00718.41
8.2.170.0110.00322.96
8.2.160.0000.01422.25
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00820.79
8.2.120.0040.00426.35
8.2.110.0000.00822.26
8.2.100.0120.00017.93
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0080.00017.93
8.2.50.0070.00418.09
8.2.40.0000.00922.31
8.2.30.0000.00719.38
8.2.20.0040.00417.72
8.2.10.0050.00318.13
8.2.00.0060.00318.11
8.1.280.0060.00925.92
8.1.270.0040.00422.20
8.1.260.0040.00428.09
8.1.250.0070.00728.09
8.1.240.0090.00023.80
8.1.230.0040.00817.70
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0040.00417.23
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0050.00318.65
8.1.160.0000.00720.77
8.1.150.0030.00618.81
8.1.140.0040.00419.44
8.1.130.0080.00017.56
8.1.120.0000.00717.30
8.1.110.0030.00517.29
8.1.100.0030.00517.45
8.1.90.0070.00017.41
8.1.80.0000.00717.43
8.1.70.0050.00217.42
8.1.60.0040.00417.58
8.1.50.0000.00817.38
8.1.40.0030.00517.45
8.1.30.0040.00417.58
8.1.20.0040.00417.48
8.1.10.0000.00817.55
8.1.00.0050.00317.42
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.47
8.0.270.0000.00717.27
8.0.260.0000.00617.19
8.0.250.0030.00317.06
8.0.240.0000.00816.93
8.0.230.0070.00017.04
8.0.220.0070.00316.99
8.0.210.0040.00416.92
8.0.200.0040.00417.05
8.0.190.0000.00717.00
8.0.180.0000.00716.93
8.0.170.0000.00717.04
8.0.160.0000.00717.01
8.0.150.0000.00716.86
8.0.140.0080.00516.90
8.0.130.0050.00013.37
8.0.120.0050.00316.84
8.0.110.0070.00016.87
8.0.100.0050.00316.98
8.0.90.0040.00416.93
8.0.80.0060.00916.89
8.0.70.0040.00416.95
8.0.60.0040.00416.86
8.0.50.0000.00817.03
8.0.30.0090.00817.12
8.0.20.0090.00917.40
8.0.10.0000.00716.99
8.0.00.0070.01516.74
7.4.330.0050.00016.79
7.4.320.0000.00616.49
7.4.300.0030.00316.35
7.4.290.0000.00616.54
7.4.280.0040.00416.47
7.4.270.0000.00716.51
7.4.260.0030.00616.53
7.4.250.0000.00816.41
7.4.240.0020.00516.50
7.4.230.0070.00016.45
7.4.220.0130.00316.58
7.4.210.0090.00716.53
7.4.200.0030.00316.29
7.4.160.0060.00916.48
7.4.150.0110.00617.40
7.4.140.0070.01617.86
7.4.130.0080.01016.42
7.4.120.0120.00716.69
7.4.110.0100.00716.51
7.4.100.0070.01016.44
7.4.90.0070.01016.50
7.4.80.0040.01419.39
7.4.70.0030.01316.71
7.4.60.0030.01316.33
7.4.50.0000.01616.61
7.4.40.0080.00816.48
7.4.30.0120.00716.40
7.4.00.0030.01015.02
7.3.330.0020.00213.38
7.3.320.0000.00513.33
7.3.310.0070.00016.35
7.3.300.0000.00616.32
7.3.290.0070.00016.20
7.3.280.0070.01016.31
7.3.270.0100.00717.40
7.3.260.0090.00916.71
7.3.250.0100.01016.37
7.3.240.0100.00716.51
7.3.230.0110.01216.39
7.3.210.0120.00416.50
7.3.200.0090.00919.39
7.3.190.0070.01016.43
7.3.180.0030.01316.65
7.3.170.0090.01216.50
7.3.160.0090.00616.41
7.2.330.0050.01616.47
7.2.320.0090.00616.35
7.2.310.0090.01516.67
7.2.300.0100.00716.74
7.2.290.0080.00916.63
7.2.60.0060.00916.81
7.2.00.0030.00919.24
7.1.200.0040.00715.54
7.1.100.0030.00818.14
7.1.70.0050.00517.00
7.1.60.0100.01419.40
7.1.50.0080.00416.84
7.1.00.0070.07322.36
7.0.200.0060.00316.46
7.0.60.0430.05319.96
7.0.50.0030.08717.88
7.0.40.0170.07720.11
7.0.30.0230.07320.30
7.0.20.0200.04320.09
7.0.10.0070.09020.25
7.0.00.0170.07320.32
5.6.280.0000.05320.87
5.6.210.0170.04020.63
5.6.200.0100.06718.16
5.6.190.0100.04020.77
5.6.180.0170.04320.39
5.6.170.0200.04720.51
5.6.160.0030.08020.55
5.6.150.0170.06318.23
5.6.140.0170.02718.22
5.6.130.0030.04018.12
5.6.120.0070.07721.05
5.6.110.0130.07721.00
5.6.100.0030.08021.01
5.6.90.0130.03020.97
5.6.80.0100.06720.50
5.5.350.0130.03020.50
5.5.340.0100.04717.95
5.5.330.0070.04720.19
5.5.320.0570.06720.24
5.5.310.0270.06020.27
5.5.300.0000.04317.98
5.5.290.0100.08017.97
5.5.280.0030.04320.80
5.5.270.0130.04320.68
5.5.260.0100.08720.87
5.5.250.0070.06720.69
5.5.240.0300.07020.12

preferences:
47.73 ms | 401 KiB | 5 Q