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] ) ){ 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.60.0130.00918.18
8.3.50.0090.00618.05
8.3.40.0100.01018.71
8.3.30.0100.00318.72
8.3.20.0070.00020.35
8.3.10.0040.00420.40
8.3.00.0050.00321.86
8.2.180.0140.00316.38
8.2.170.0070.00722.96
8.2.160.0070.00722.20
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.13
8.2.120.0050.00326.35
8.2.110.0080.00019.24
8.2.100.0090.00317.72
8.2.90.0060.00320.01
8.2.80.0060.00317.97
8.2.70.0060.00317.60
8.2.60.0040.00417.93
8.2.50.0040.00418.09
8.2.40.0000.00720.59
8.2.30.0050.00319.61
8.2.20.0080.00017.75
8.2.10.0050.00218.20
8.2.00.0040.00418.12
8.1.280.0120.00625.92
8.1.270.0060.01322.16
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0070.01022.59
8.1.230.0090.00320.79
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.01018.64
8.1.160.0040.00420.75
8.1.150.0000.00820.48
8.1.140.0040.00419.51
8.1.130.0000.00817.65
8.1.120.0070.00017.41
8.1.110.0000.00717.41
8.1.100.0000.00717.39
8.1.90.0070.00017.32
8.1.80.0050.00217.42
8.1.70.0070.00017.40
8.1.60.0030.00517.44
8.1.50.0040.00417.46
8.1.40.0040.00417.49
8.1.30.0060.00317.62
8.1.20.0000.00817.34
8.1.10.0030.00617.45
8.1.00.0050.00217.22
8.0.300.0000.00720.07
8.0.290.0030.00616.75
8.0.280.0030.00318.36
8.0.270.0030.00317.32
8.0.260.0000.00617.13
8.0.250.0070.00016.96
8.0.240.0000.00817.00
8.0.230.0080.00016.77
8.0.220.0080.00016.86
8.0.210.0070.00016.82
8.0.200.0000.00716.86
8.0.190.0040.00416.90
8.0.180.0080.00016.78
8.0.170.0080.00016.84
8.0.160.0040.00416.93
8.0.150.0000.00716.80
8.0.140.0000.00716.71
8.0.130.0030.00313.25
8.0.120.0030.00516.69
8.0.110.0040.00416.75
8.0.100.0080.00016.64
8.0.90.0060.00316.61
8.0.80.0070.01016.71
8.0.70.0020.00516.63
8.0.60.0000.00816.89
8.0.50.0040.00416.88
8.0.30.0100.00717.11
8.0.20.0080.01117.40
8.0.10.0020.00516.90
8.0.00.0060.01316.70
7.4.330.0030.00316.71
7.4.320.0040.00416.55
7.4.300.0000.00716.59
7.4.290.0040.00416.45
7.4.280.0060.00316.36
7.4.270.0030.00316.55
7.4.260.0000.00716.49
7.4.250.0050.00316.29
7.4.240.0000.00716.63
7.4.230.0030.00316.42
7.4.220.0110.00816.51
7.4.210.0060.00816.52
7.4.200.0000.00716.45
7.4.160.0090.00616.64
7.4.150.0030.01417.40
7.4.140.0080.00917.86
7.4.130.0090.00816.48
7.4.120.0070.01016.60
7.4.110.0130.00316.37
7.4.100.0170.00016.65
7.4.90.0100.01316.45
7.4.80.0120.00919.39
7.4.70.0110.00516.49
7.4.60.0120.00616.53
7.4.50.0030.01316.57
7.4.40.0060.01216.61
7.4.30.0040.01816.46
7.4.00.0040.00914.83
7.3.330.0000.00613.19
7.3.320.0000.00513.33
7.3.310.0000.00816.45
7.3.300.0070.00016.34
7.3.290.0000.00716.30
7.3.280.0110.00816.29
7.3.270.0090.00917.40
7.3.260.0100.00716.37
7.3.250.0080.00916.41
7.3.240.0090.00816.51
7.3.230.0100.01216.39
7.3.210.0070.01016.48
7.3.200.0150.00516.42
7.3.190.0110.00916.50
7.3.180.0110.01016.57
7.3.170.0090.01216.50
7.3.160.0140.00616.55
7.3.120.0030.01414.65
7.3.110.0090.00914.77
7.3.100.0070.00814.83
7.3.90.0060.00615.07
7.3.80.0040.00415.00
7.3.70.0030.01014.62
7.3.60.0000.01114.41
7.3.50.0060.00614.50
7.3.40.0060.00615.05
7.3.30.0030.00814.72
7.3.20.0030.01416.72
7.3.10.0040.01016.69
7.3.00.0050.00916.53
7.2.330.0090.00916.68
7.2.320.0060.01116.62
7.2.310.0130.00316.38
7.2.300.0180.00016.38
7.2.290.0140.00316.35
7.2.250.0070.01115.07
7.2.240.0000.02014.93
7.2.230.0070.01414.77
7.2.220.0090.00014.92
7.2.210.0060.00315.11
7.2.200.0070.01014.87
7.2.190.0070.00715.02
7.2.180.0000.01414.78
7.2.170.0000.01514.82
7.2.130.0080.00516.81
7.2.120.0030.00816.81
7.2.110.0040.00716.88
7.2.100.0040.00816.98
7.2.90.0040.01116.81
7.2.80.0050.00616.81
7.2.70.0080.00616.71
7.2.60.0080.00516.57
7.2.50.0050.00816.88
7.2.40.0090.00317.03
7.2.30.0080.00716.88
7.2.20.0050.01016.90
7.2.10.0070.01016.58
7.2.00.0050.01117.41
7.1.330.0110.00415.58
7.1.320.0030.00715.80
7.1.310.0060.00815.85
7.1.300.0080.00315.91
7.1.290.0050.00515.80
7.1.280.0110.00315.75
7.1.270.0060.00615.79
7.1.260.0070.00715.64
7.1.250.0030.01015.82
7.1.200.0060.00615.86
7.1.100.0130.00318.13
7.1.70.0040.00417.16
7.1.60.0100.01619.19
7.1.50.0090.01316.96
7.1.00.0030.07722.33
7.0.200.0640.00714.56
7.0.60.0200.07721.73
7.0.50.0000.04717.87
7.0.40.0030.04720.23
7.0.30.0300.04720.30
7.0.20.0370.07720.33
7.0.10.0000.05020.30
7.0.00.0100.06320.07
5.6.280.0000.04021.07
5.6.210.0130.07720.73
5.6.200.0070.04018.22
5.6.190.0170.07720.46
5.6.180.0270.04320.67
5.6.170.0270.08320.56
5.6.160.0070.08020.46
5.6.150.0070.05018.22
5.6.140.0070.04318.23
5.6.130.0070.09018.15
5.6.120.0070.08021.01
5.6.110.0100.03320.99
5.6.100.0070.08321.09
5.6.90.0100.07720.97
5.6.80.0170.07320.36
5.5.350.0370.06320.45
5.5.340.0100.06718.09
5.5.330.0070.08320.28
5.5.320.0370.07320.27
5.5.310.0330.07020.28
5.5.300.0070.05318.03
5.5.290.0100.06717.99
5.5.280.0030.04320.95
5.5.270.0170.07320.77
5.5.260.0070.06720.88
5.5.250.0070.08720.66
5.5.240.0030.07020.28

preferences:
47.64 ms | 401 KiB | 5 Q