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::{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.0000.01516.50
8.3.50.0110.00418.18
8.3.40.0220.00018.92
8.3.30.0150.00018.67
8.3.20.0040.00420.05
8.3.10.0100.00018.95
8.3.00.0060.00323.52
8.2.180.0070.00718.54
8.2.170.0090.00922.96
8.2.160.0110.00422.13
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00020.78
8.2.120.0050.00226.35
8.2.110.0030.00621.00
8.2.100.0030.00718.04
8.2.90.0000.00819.09
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0050.00318.09
8.2.40.0050.00222.25
8.2.30.0000.00719.51
8.2.20.0000.00717.72
8.2.10.0050.00218.03
8.2.00.0040.00418.07
8.1.280.0100.00325.92
8.1.270.0000.00722.18
8.1.260.0040.00428.09
8.1.250.0060.00628.09
8.1.240.0000.00922.54
8.1.230.0060.00617.76
8.1.220.0090.00017.76
8.1.210.0080.00018.77
8.1.200.0030.00617.48
8.1.190.0090.00017.25
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0000.00820.72
8.1.150.0030.00718.89
8.1.140.0040.00417.39
8.1.130.0040.00417.52
8.1.120.0040.00417.41
8.1.110.0000.00717.38
8.1.100.0050.00317.41
8.1.90.0000.00717.30
8.1.80.0030.00317.43
8.1.70.0000.00717.35
8.1.60.0040.00417.58
8.1.50.0040.00417.46
8.1.40.0040.00417.47
8.1.30.0040.00417.46
8.1.20.0000.00817.57
8.1.10.0000.00717.53
8.1.00.0050.00317.48
8.0.300.0040.00418.84
8.0.290.0030.00516.75
8.0.280.0000.00718.44
8.0.270.0060.00316.91
8.0.260.0000.00617.20
8.0.250.0000.00716.99
8.0.240.0000.00717.06
8.0.230.0000.00717.05
8.0.220.0040.00416.96
8.0.210.0000.00716.89
8.0.200.0040.00416.92
8.0.190.0000.00717.01
8.0.180.0050.00317.05
8.0.170.0040.00417.01
8.0.160.0070.00016.95
8.0.150.0040.00416.84
8.0.140.0080.00316.87
8.0.130.0030.00313.46
8.0.120.0000.00816.92
8.0.110.0000.00716.83
8.0.100.0030.00516.91
8.0.90.0000.00716.87
8.0.80.0060.00916.91
8.0.70.0040.00416.94
8.0.60.0000.00816.79
8.0.50.0080.00017.03
8.0.30.0070.00816.97
8.0.20.0130.00517.40
8.0.10.0030.00516.90
8.0.00.0110.00716.75
7.4.330.0000.00516.89
7.4.320.0000.00616.56
7.4.300.0030.00316.56
7.4.290.0000.00716.54
7.4.280.0000.00816.43
7.4.270.0030.00316.56
7.4.260.0000.00616.42
7.4.250.0000.00716.41
7.4.240.0000.00816.37
7.4.230.0070.00016.29
7.4.220.0130.00416.35
7.4.210.0060.01016.46
7.4.200.0030.00316.53
7.4.160.0070.01416.54
7.4.150.0170.00017.40
7.4.140.0130.00817.86
7.4.130.0090.00816.55
7.4.120.0120.00616.67
7.4.110.0030.01316.63
7.4.100.0200.00316.30
7.4.90.0030.01916.46
7.4.80.0110.00719.39
7.4.70.0090.00616.48
7.4.60.0030.01416.46
7.4.50.0060.00916.44
7.4.40.0070.01016.63
7.4.30.0090.00916.48
7.4.00.0060.01015.03
7.3.330.0060.00013.23
7.3.320.0050.00013.38
7.3.310.0000.00716.39
7.3.300.0000.00616.36
7.3.290.0000.00716.38
7.3.280.0110.00616.38
7.3.270.0100.00717.40
7.3.260.0060.01216.41
7.3.250.0070.01316.49
7.3.240.0130.00716.33
7.3.230.0040.01516.46
7.3.210.0140.00316.61
7.3.200.0030.01419.39
7.3.190.0100.00716.50
7.3.180.0070.01016.43
7.3.170.0140.00716.56
7.3.160.0060.00916.55
7.3.120.0070.01014.83
7.3.110.0110.00414.66
7.3.100.0070.00715.02
7.3.90.0090.00614.89
7.3.80.0040.01214.72
7.3.70.0060.00914.65
7.3.60.0110.00414.94
7.3.50.0140.00014.99
7.3.40.0040.01114.86
7.3.30.0030.00614.73
7.3.20.0040.01216.69
7.3.10.0040.01116.60
7.3.00.0120.00316.52
7.2.330.0030.01416.77
7.2.320.0070.01516.71
7.2.310.0200.00316.61
7.2.300.0130.00316.74
7.2.290.0170.00416.30
7.2.240.0040.01115.24
7.2.230.0150.00415.14
7.2.220.0030.00915.16
7.2.210.0030.00714.86
7.2.200.0090.00914.81
7.2.190.0040.00814.98
7.2.180.0000.01514.74
7.2.170.0000.01114.89
7.2.160.0060.00914.91
7.2.150.0070.01116.86
7.2.140.0080.00416.78
7.2.130.0060.00916.91
7.2.120.0090.00616.87
7.2.110.0080.00816.76
7.2.100.0000.01116.78
7.2.90.0040.01117.04
7.2.80.0070.01016.88
7.2.70.0070.00316.91
7.2.60.0050.01016.86
7.2.50.0080.00616.63
7.2.40.0030.01216.91
7.2.30.0040.00716.98
7.2.20.0030.01216.81
7.2.10.0000.01316.82
7.2.00.0090.00618.15
7.1.330.0070.00715.52
7.1.320.0030.01215.80
7.1.310.0040.01115.64
7.1.300.0060.00615.47
7.1.290.0070.01015.69
7.1.280.0040.01115.73
7.1.270.0000.01315.68
7.1.260.0100.00715.71
7.1.250.0130.00315.49
7.1.200.0030.00615.27
7.1.100.0030.01017.96
7.1.70.0040.00417.14
7.1.60.0160.00919.40
7.1.50.0130.01016.55
7.1.00.0070.07322.54
7.0.200.0000.01116.79
7.0.60.0400.07020.05
7.0.50.0100.06017.85
7.0.40.0070.05720.20
7.0.30.0230.05720.17
7.0.20.0200.04320.07
7.0.10.0100.06720.07
7.0.00.0000.09020.16
5.6.280.0030.07321.11
5.6.210.0030.04720.63
5.6.200.0130.07718.18
5.6.190.0130.04320.55
5.6.180.0200.04320.50
5.6.170.0230.03720.52
5.6.160.0130.04720.46
5.6.150.0100.07718.12
5.6.140.0000.04018.17
5.6.130.0000.04318.23
5.6.120.0130.07720.99
5.6.110.0200.07721.09
5.6.100.0100.08020.99
5.6.90.0000.04321.01
5.6.80.0230.06720.39
5.5.350.0130.03020.41
5.5.340.0170.06717.94
5.5.330.0130.07320.42
5.5.320.0600.07020.38
5.5.310.0370.05020.23
5.5.300.0070.03317.98
5.5.290.0100.07718.07
5.5.280.0100.03320.78
5.5.270.0100.07720.89
5.5.260.0300.07020.95
5.5.250.0030.06020.79
5.5.240.0270.07720.07

preferences:
53.53 ms | 401 KiB | 5 Q