3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static public $arr = array("test"); function bar( $str ){ var_dump(self::$arr[0]); if ( is_callable( self::$arr[0] ) ){ (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.0070.00716.50
8.3.50.0130.00422.05
8.3.40.0060.00918.71
8.3.30.0070.00718.67
8.3.20.0000.00720.16
8.3.10.0100.00018.73
8.3.00.0030.00723.56
8.2.180.0070.00718.04
8.2.170.0070.00722.96
8.2.160.0100.00322.07
8.2.150.0030.00524.18
8.2.140.0000.00724.66
8.2.130.0040.00420.63
8.2.120.0040.00426.35
8.2.110.0050.00519.29
8.2.100.0080.00418.16
8.2.90.0080.00019.21
8.2.80.0030.00617.97
8.2.70.0090.00017.63
8.2.60.0050.00317.93
8.2.50.0080.00018.09
8.2.40.0000.00822.32
8.2.30.0070.00019.52
8.2.20.0000.00717.70
8.2.10.0070.00018.01
8.2.00.0000.00717.95
8.1.280.0060.00925.92
8.1.270.0050.00322.24
8.1.260.0040.00428.09
8.1.250.0130.00428.09
8.1.240.0050.00522.29
8.1.230.0090.00317.77
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00517.25
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0040.00420.65
8.1.150.0030.00618.74
8.1.140.0000.00919.46
8.1.130.0050.00317.66
8.1.120.0070.00017.31
8.1.110.0040.00417.22
8.1.100.0040.00417.25
8.1.90.0040.00417.35
8.1.80.0000.00717.41
8.1.70.0000.00717.35
8.1.60.0050.00317.46
8.1.50.0060.00317.38
8.1.40.0040.00417.48
8.1.30.0080.00017.48
8.1.20.0000.00717.60
8.1.10.0000.00817.38
8.1.00.0020.00517.37
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0050.00317.27
8.0.260.0070.00017.21
8.0.250.0000.00716.82
8.0.240.0000.00716.90
8.0.230.0030.00316.75
8.0.220.0000.01016.71
8.0.210.0020.00516.75
8.0.200.0060.00016.90
8.0.190.0000.00816.88
8.0.180.0040.00416.74
8.0.170.0000.00716.78
8.0.160.0030.00316.85
8.0.150.0080.00016.72
8.0.140.0030.00616.69
8.0.130.0030.00313.18
8.0.120.0000.00816.67
8.0.110.0040.00416.78
8.0.100.0000.00716.76
8.0.90.0070.00016.59
8.0.80.0130.00716.78
8.0.70.0000.00716.65
8.0.60.0050.00216.82
8.0.50.0000.00816.80
8.0.30.0080.01117.01
8.0.20.0070.01317.40
8.0.10.0080.00016.90
8.0.00.0090.01216.72
7.4.330.0000.00516.77
7.4.320.0060.00016.38
7.4.300.0030.00316.44
7.4.290.0030.00316.35
7.4.280.0040.00416.46
7.4.270.0070.00016.61
7.4.260.0030.00316.43
7.4.250.0040.00416.54
7.4.240.0000.00816.48
7.4.230.0000.00716.49
7.4.220.0110.00716.66
7.4.210.0070.01016.41
7.4.200.0030.00316.55
7.4.160.0110.00716.38
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0110.00616.61
7.4.120.0090.00816.48
7.4.110.0070.01416.32
7.4.100.0080.00916.47
7.4.90.0140.00316.35
7.4.80.0140.01119.39
7.4.70.0060.01016.49
7.4.60.0090.00616.45
7.4.50.0070.00716.55
7.4.40.0100.00616.56
7.4.30.0130.01016.49
7.4.00.0080.00814.99
7.3.330.0060.00013.41
7.3.320.0000.00613.23
7.3.310.0030.00316.36
7.3.300.0060.00016.34
7.3.290.0080.01016.35
7.3.280.0080.01216.36
7.3.270.0030.01517.40
7.3.260.0130.01016.42
7.3.250.0110.00816.34
7.3.240.0080.00816.34
7.3.230.0070.01016.55
7.3.210.0090.00916.41
7.3.200.0000.01619.39
7.3.190.0120.00416.23
7.3.180.0160.00616.52
7.3.170.0120.00916.26
7.3.160.0040.01116.39
7.2.330.0060.01216.31
7.2.320.0100.01316.52
7.2.310.0040.01416.65
7.2.300.0090.00616.40
7.2.290.0100.00616.59
7.2.60.0030.01016.80
7.2.00.0000.01619.46
7.1.200.0080.00315.91
7.1.70.0000.00716.95
7.1.60.0000.01316.95
7.1.50.0100.01316.96
7.1.00.0030.07722.36
7.0.200.0070.00716.40
7.0.60.0230.06721.75
7.0.50.0000.07717.84
7.0.40.0070.04720.25
7.0.30.0330.05720.13
7.0.20.0370.05320.44
7.0.10.0130.08020.07
7.0.00.0100.05320.22
5.6.280.0030.06321.02
5.6.210.0130.07720.50
5.6.200.0070.08018.19
5.6.190.0070.09020.77
5.6.180.0170.04320.66
5.6.170.0100.05020.41
5.6.160.0030.04020.71
5.6.150.0100.07318.16
5.6.140.0030.04018.13
5.6.130.0070.06718.19
5.6.120.0030.04320.94
5.6.110.0130.07721.04
5.6.100.0030.09020.89
5.6.90.0070.04021.12
5.6.80.0000.06720.34
5.5.350.0130.04320.52
5.5.340.0030.04017.99
5.5.330.0170.07320.19
5.5.320.0570.07020.27
5.5.310.0230.06720.41
5.5.300.0100.07718.09
5.5.290.0030.04017.97
5.5.280.0130.07720.90
5.5.270.0100.08320.73
5.5.260.0070.07320.87
5.5.250.0100.06720.50
5.5.240.0330.05320.37

preferences:
40.73 ms | 401 KiB | 5 Q