3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $arr = array("test"); function bar( $str ){ var_dump($this->arr[0]); var_dump(is_callable(__CLASS__."::".$this->arr[0])); self::{$this->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.70.0110.00416.50
8.3.60.0070.00716.75
8.3.50.0120.00821.98
8.3.40.0080.00818.84
8.3.30.0070.00718.67
8.3.20.0040.00420.33
8.3.10.0100.00318.74
8.3.00.0000.00823.57
8.2.190.0120.00616.75
8.2.180.0120.00318.37
8.2.170.0070.00722.96
8.2.160.0070.00722.11
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.00
8.2.110.0060.00321.02
8.2.100.0060.00617.79
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0060.00318.05
8.2.50.0050.00318.09
8.2.40.0030.00622.27
8.2.30.0080.00019.46
8.2.20.0040.00417.84
8.2.10.0020.00518.04
8.2.00.0000.00718.13
8.1.280.0070.00725.92
8.1.270.0130.00622.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0100.00022.61
8.1.230.0070.00417.70
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0000.01017.36
8.1.190.0030.00617.10
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0000.00720.64
8.1.150.0080.00418.71
8.1.140.0050.00319.46
8.1.130.0030.00317.59
8.1.120.0050.00317.27
8.1.110.0040.00417.25
8.1.100.0000.00717.20
8.1.90.0030.00517.26
8.1.80.0070.00017.24
8.1.70.0040.00417.36
8.1.60.0040.00417.43
8.1.50.0030.00617.40
8.1.40.0080.00017.45
8.1.30.0000.00917.63
8.1.20.0000.00817.57
8.1.10.0000.00717.61
8.1.00.0030.00517.50
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0040.00417.24
8.0.260.0030.00317.27
8.0.250.0030.00316.85
8.0.240.0000.00716.95
8.0.230.0030.00316.96
8.0.220.0040.00416.82
8.0.210.0050.00216.89
8.0.200.0060.00016.89
8.0.190.0030.00516.97
8.0.180.0030.00516.96
8.0.170.0080.00016.90
8.0.160.0040.00416.98
8.0.150.0070.00016.93
8.0.140.0030.00616.80
8.0.130.0000.00513.29
8.0.120.0040.00416.77
8.0.110.0050.00216.74
8.0.100.0070.00016.89
8.0.90.0000.00716.95
8.0.80.0040.01116.93
8.0.70.0070.00016.76
8.0.60.0090.00016.62
8.0.50.0000.00816.69
8.0.30.0080.01116.83
8.0.20.0120.00817.40
8.0.10.0050.00216.80
8.0.00.0090.01216.70
7.4.330.0000.00516.89
7.4.320.0060.00016.36
7.4.300.0000.00616.42
7.4.290.0070.00016.62
7.4.280.0070.00016.45
7.4.270.0000.00716.60
7.4.260.0040.00416.60
7.4.250.0070.00016.62
7.4.240.0000.00816.52
7.4.230.0070.00016.53
7.4.220.0100.01016.59
7.4.210.0090.00816.59
7.4.200.0030.00516.38
7.4.160.0050.01116.45
7.4.150.0100.00717.40
7.4.140.0110.01117.86
7.4.130.0200.00216.59
7.4.120.0120.00616.44
7.4.110.0150.00316.47
7.4.100.0090.01216.38
7.4.90.0070.01016.55
7.4.80.0100.01019.39
7.4.70.0060.00916.48
7.4.60.0030.01316.35
7.4.50.0030.01216.56
7.4.40.0130.00316.48
7.4.30.0030.01516.39
7.4.00.0060.00914.86
7.3.330.0000.00513.36
7.3.320.0030.00213.32
7.3.310.0000.00716.26
7.3.300.0070.00016.31
7.3.290.0000.00716.24
7.3.280.0110.00516.39
7.3.270.0180.00017.40
7.3.260.0040.01416.73
7.3.250.0100.00916.38
7.3.240.0060.01016.46
7.3.230.0150.00916.39
7.3.210.0080.00816.46
7.3.200.0000.01619.39
7.3.190.0080.00816.52
7.3.180.0120.00916.41
7.3.170.0130.00316.62
7.3.160.0100.00516.34
7.3.120.0110.00714.60
7.3.110.0100.00914.55
7.3.100.0050.01114.93
7.3.90.0050.01114.77
7.3.80.0070.00814.89
7.3.70.0050.00814.66
7.3.60.0030.00814.75
7.3.50.0050.00914.57
7.3.40.0060.00714.68
7.3.30.0050.00814.63
7.3.20.0050.00816.79
7.3.10.0040.00916.59
7.3.00.0040.00816.59
7.2.330.0050.01416.75
7.2.320.0070.01016.72
7.2.310.0100.00916.61
7.2.300.0080.00816.29
7.2.290.0030.01716.70
7.2.250.0070.01414.96
7.2.240.0050.01314.86
7.2.230.0080.00715.03
7.2.220.0050.00915.05
7.2.210.0080.00914.78
7.2.200.0070.00415.05
7.2.190.0100.00314.92
7.2.180.0050.00615.11
7.2.170.0060.00314.91
7.2.130.0040.01117.00
7.2.120.0040.01216.93
7.2.110.0060.00616.98
7.2.100.0000.01016.88
7.2.90.0030.01016.77
7.2.80.0120.00317.01
7.2.70.0090.00616.94
7.2.60.0100.00517.00
7.2.50.0070.00716.96
7.2.40.0060.00617.02
7.2.30.0000.01517.06
7.2.20.0080.00316.61
7.2.10.0040.01117.08
7.2.00.0160.00418.17
7.1.330.0070.00715.77
7.1.320.0070.00915.72
7.1.310.0050.01015.52
7.1.300.0050.00515.70
7.1.290.0000.01315.89
7.1.280.0050.00515.70
7.1.270.0060.00615.91
7.1.260.0030.01215.73
7.1.250.0090.00015.75
7.1.200.0040.00815.78
7.1.100.0030.01318.05
7.1.70.0170.00417.07
7.1.60.0060.01919.40
7.1.50.0070.01516.66
7.1.00.0030.07322.27
7.0.200.0080.00016.77
7.0.60.0300.05319.93
7.0.50.0070.08017.92
7.0.40.0070.05320.11
7.0.30.0270.06320.34
7.0.20.0230.08720.23
7.0.10.0030.05320.26
7.0.00.0130.05020.16
5.6.280.0000.06721.07
5.6.210.0100.07020.54
5.6.200.0070.08018.29
5.6.190.0130.05020.77
5.6.180.0230.03720.63
5.6.170.0200.04020.47
5.6.160.0030.04320.43
5.6.150.0100.06018.18
5.6.140.0030.03718.27
5.6.130.0130.04018.18
5.6.120.0070.04320.97
5.6.110.0070.05021.10
5.6.100.0030.07320.98
5.6.90.0000.04720.98
5.6.80.0230.07320.29
5.5.350.0070.05320.41
5.5.340.0130.06718.00
5.5.330.0130.07020.21
5.5.320.0500.07320.27
5.5.310.0400.04720.35
5.5.300.0000.04317.93
5.5.290.0130.03718.04
5.5.280.0170.06720.85
5.5.270.0000.05320.96
5.5.260.0070.08320.65
5.5.250.0070.07720.57
5.5.240.0270.07320.27

preferences:
63.2 ms | 401 KiB | 5 Q