3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $arr = array("test"); static function test($var) { echo "Testing: $var\n"; } } (new class extends Foo { function bar( $str ){ if( is_callable( $this->arr[0],true ) ){ self::{$this->arr[0]}( $str ); } } })->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.40.0080.00818.71
8.3.30.0100.00318.64
8.3.20.0070.00020.17
8.3.10.0040.00420.37
8.3.00.0070.00021.91
8.2.170.0100.00318.79
8.2.160.0110.00422.16
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00421.00
8.2.110.0060.00319.45
8.2.100.0030.01017.93
8.2.90.0040.00419.07
8.2.80.0090.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00718.02
8.2.50.0000.00918.09
8.2.40.0040.00420.39
8.2.30.0090.00019.36
8.2.20.0040.00417.67
8.2.10.0000.00718.03
8.2.00.0000.00718.09
8.1.270.0000.00923.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.59
8.1.230.0030.00717.82
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0050.00518.70
8.1.160.0040.00420.71
8.1.150.0040.00420.61
8.1.140.0000.00819.48
8.1.130.0000.00717.63
8.1.120.0030.00317.43
8.1.110.0000.00717.40
8.1.100.0000.00717.39
8.1.90.0040.00417.40
8.1.80.0070.00017.39
8.1.70.0000.00717.29
8.1.60.0090.00017.52
8.1.50.0040.00417.45
8.1.40.0040.00417.45
8.1.30.0030.00517.53
8.1.20.0030.00517.44
8.1.10.0070.00417.52
8.1.00.0040.00417.38
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0030.00317.27
8.0.260.0030.00317.25
8.0.250.0030.00316.97
8.0.240.0000.00816.84
8.0.230.0030.00316.98
8.0.220.0000.00716.90
8.0.210.0070.00016.87
8.0.200.0000.00716.98
8.0.190.0040.00416.85
8.0.180.0000.00716.80
8.0.170.0060.00316.96
8.0.160.0000.00816.95
8.0.150.0050.00516.73
8.0.140.0000.00716.77
8.0.130.0000.00613.25
8.0.120.0030.00516.83
8.0.110.0050.00216.79
8.0.100.0020.00516.79
8.0.90.0000.00816.91
8.0.80.0100.00616.89
8.0.70.0070.00016.84
8.0.60.0050.00216.70
8.0.50.0040.00416.90
8.0.30.0090.00717.03
8.0.20.0130.00517.40
8.0.10.0000.00716.82
8.0.00.0100.00916.78
7.4.330.0000.00516.67
7.4.320.0030.00316.49
7.4.300.0000.00616.52
7.4.290.0070.00016.55
7.4.280.0000.00716.46
7.4.270.0000.00716.63
7.4.260.0030.00516.54
7.4.250.0070.00016.48
7.4.240.0070.00016.47
7.4.230.0070.00016.64
7.4.220.0110.00916.47
7.4.210.0110.00516.63
7.4.200.0070.00016.39
7.4.160.0070.00716.40
7.4.150.0110.00717.40
7.4.140.0160.00117.86
7.4.130.0120.00616.31
7.4.120.0100.00616.53
7.4.110.0120.00616.59
7.4.100.0090.00916.47
7.4.90.0100.00716.26
7.4.80.0120.00619.39
7.4.70.0120.00916.45
7.4.60.0110.00616.38
7.4.50.0050.00716.29
7.4.40.0100.00616.50
7.4.30.0120.00916.20
7.4.00.0000.01414.92
7.3.330.0050.00013.25
7.3.320.0000.00613.42
7.3.310.0070.00016.40
7.3.300.0030.00316.26
7.3.290.0060.00016.42
7.3.280.0030.01216.41
7.3.270.0090.00917.40
7.3.260.0110.00616.60
7.3.250.0130.00616.45
7.3.240.0100.00816.54
7.3.230.0090.01316.57
7.3.210.0080.00916.30
7.3.200.0060.00916.50
7.3.190.0090.00616.66
7.3.180.0150.00616.50
7.3.170.0140.00616.33
7.3.160.0130.00316.59
7.2.330.0100.00716.71
7.2.320.0090.01216.37
7.2.310.0110.00616.70
7.2.300.0060.01116.36
7.2.290.0030.01616.58
7.2.60.0050.00916.86
7.2.00.0060.00819.27
7.1.200.0080.00815.54
7.1.100.0100.00618.29
7.1.70.0040.00417.29
7.1.60.0070.01719.19
7.1.50.0100.01016.93
7.1.00.0030.07722.29
7.0.200.0200.00714.50
7.0.100.0330.05019.93
7.0.90.0100.06319.86
7.0.80.0130.07719.90
7.0.70.0130.07319.90
7.0.60.0070.04019.78
7.0.50.0270.07320.29
7.0.40.0100.07019.96
7.0.30.0070.08320.13
7.0.20.0070.08720.16
7.0.10.0170.04020.02
7.0.00.0170.07320.07
5.6.280.0000.07720.91
5.6.250.0070.06720.71
5.6.240.0030.05720.65
5.6.230.0170.07320.63
5.6.220.0070.06020.65
5.6.210.0170.07020.55
5.6.200.0030.05020.97
5.6.190.0070.08721.18
5.6.180.0070.05021.05
5.6.170.0100.08321.18
5.6.160.0100.07721.14
5.6.150.0200.07021.14
5.6.140.0000.09021.04
5.6.130.0030.05020.89
5.6.120.0100.06720.96
5.6.110.0030.05320.93
5.6.100.0070.06320.95
5.6.90.0100.05021.00
5.6.80.0170.07720.49
5.6.70.0070.08020.44
5.6.60.0000.08320.33
5.6.50.0130.07020.55
5.6.40.0100.04020.41
5.6.30.0130.03020.47
5.6.20.0070.05320.31
5.6.10.0100.06320.40
5.6.00.0100.07320.30
5.5.380.0100.06020.34
5.5.370.0070.07720.38
5.5.360.0130.07020.45
5.5.350.0070.05020.42
5.5.340.0100.08020.93
5.5.330.0100.08020.79
5.5.320.0030.04320.84
5.5.310.0100.05020.86
5.5.300.0100.04720.64
5.5.290.0070.04720.93
5.5.280.0070.08020.86
5.5.270.0130.04320.82
5.5.260.0200.07020.90
5.5.250.0070.07720.67
5.5.240.0100.04320.14
5.5.230.0070.05320.24
5.5.220.0100.06020.21
5.5.210.0070.08320.18
5.5.200.0130.06020.26
5.5.190.0030.04020.16
5.5.180.0070.08020.19
5.5.160.0070.04720.11
5.5.150.0030.06320.14
5.5.140.0170.06720.27
5.5.130.0030.05320.18
5.5.120.0000.08320.27
5.5.110.0030.07320.12
5.5.100.0130.06020.07
5.5.90.0100.07320.17
5.5.80.0070.07720.07
5.5.70.0030.08720.03
5.5.60.0100.03319.93
5.5.50.0070.03720.14
5.5.40.0100.03719.96
5.5.30.0070.03720.08
5.5.20.0030.04020.09
5.5.10.0030.04020.04
5.5.00.0000.04320.03

preferences:
52.59 ms | 400 KiB | 5 Q