3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); function true(){ $true = 'false'; echo "\n", $true,":)"; } class Test { private $data; public function __construct($d){ $this->data = $d; } public function list(){ list($a,$b,$c) = $this->data; echo $a,"\n"; echo $b,"\n"; echo $c,"\n"; return $this; } public function null(){ echo "\nData is ",is_null($this->data)? 'null' : 'not null'; } } $arr = array("a","b","c"); (new Test($arr))->list()->null(); true();

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.0070.01018.84
8.3.30.0040.01118.73
8.3.20.0040.00420.35
8.3.10.0000.00823.65
8.3.00.0040.00417.63
8.2.170.0070.01422.96
8.2.160.0070.00720.39
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0090.00017.50
8.2.110.0040.00420.55
8.2.100.0090.00319.82
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0000.01017.74
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0000.00819.39
8.2.30.0050.00320.71
8.2.20.0040.00417.76
8.2.10.0000.00718.01
8.2.00.0030.00518.14
8.1.270.0040.00423.83
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0100.00022.21
8.1.230.0040.00721.04
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.01017.35
8.1.190.0080.00017.00
8.1.180.0040.00418.10
8.1.170.0000.00819.02
8.1.160.0040.00421.96
8.1.150.0030.00318.76
8.1.140.0060.00317.46
8.1.130.0000.00717.59
8.1.120.0040.00417.46
8.1.110.0050.00317.46
8.1.100.0040.00417.44
8.1.90.0040.00417.45
8.1.80.0000.00717.38
8.1.70.0030.00317.23
8.1.60.0070.00017.52
8.1.50.0040.00417.57
8.1.40.0000.00817.52
8.1.30.0030.00517.50
8.1.20.0050.00317.66
8.1.10.0000.00717.59
8.1.00.0000.00817.55
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0000.00816.71
8.0.260.0030.00317.33
8.0.250.0000.00716.99
8.0.240.0030.00516.86
8.0.230.0050.00216.75
8.0.220.0000.00816.81
8.0.210.0030.00316.89
8.0.200.0030.00316.79
8.0.190.0060.00316.92
8.0.180.0070.00016.85
8.0.170.0040.00416.75
8.0.160.0070.00016.80
8.0.150.0060.00316.86
8.0.140.0070.00016.82
8.0.130.0030.00313.30
8.0.120.0040.00416.77
8.0.110.0060.00316.66
8.0.100.0000.00716.90
8.0.90.0030.00516.75
8.0.80.0040.01116.80
8.0.70.0050.00216.72
8.0.60.0040.00416.89
8.0.50.0040.00416.64
8.0.30.0130.00617.04
8.0.20.0100.01017.40
8.0.10.0040.00416.85
8.0.00.0160.00316.67
7.4.330.0000.00515.17
7.4.320.0070.00016.48
7.4.300.0070.00016.52
7.4.290.0000.00716.62
7.4.280.0040.00416.61
7.4.270.0030.00316.54
7.4.260.0030.00316.52
7.4.250.0040.00416.45
7.4.240.0040.00416.54
7.4.230.0040.00416.68
7.4.220.0030.01716.56
7.4.210.0080.01016.62
7.4.200.0030.00316.55
7.4.160.0110.00616.57
7.4.150.0040.01517.40
7.4.140.0120.00717.86
7.4.130.0060.01416.53
7.4.120.0070.01116.59
7.4.110.0100.00716.61
7.4.100.0090.01316.29
7.4.90.0160.00016.61
7.4.80.0130.00419.39
7.4.70.0130.00316.45
7.4.60.0070.01116.42
7.4.50.0000.00816.59
7.4.40.0070.01016.68
7.4.30.0190.00316.61
7.4.10.0040.01514.75
7.4.00.0090.00814.66
7.3.330.0000.00613.33
7.3.320.0030.00313.36
7.3.310.0030.00316.23
7.3.300.0030.00316.26
7.3.290.0050.00216.34
7.3.280.0100.00816.36
7.3.270.0130.00317.40
7.3.260.0090.00916.57
7.3.240.0080.00916.36
7.3.230.0130.01116.48
7.3.210.0070.01016.51
7.3.200.0040.01216.49
7.3.190.0000.01716.46
7.3.180.0140.00616.37
7.3.170.0060.01316.46
7.3.160.0030.01316.23
7.3.130.0070.01115.04
7.3.120.0070.01014.85
7.3.110.0100.01015.16
7.3.100.0090.00314.83
7.3.90.0030.00614.84
7.3.80.0110.00014.76
7.3.70.0070.00714.93
7.3.60.0100.00714.95
7.3.50.0000.01114.76
7.3.40.0120.00014.96
7.3.30.0090.00614.85
7.3.20.0040.01116.71
7.3.10.0060.00716.57
7.3.00.0090.00516.64
7.2.330.0100.00716.43
7.2.320.0070.01016.57
7.2.310.0100.00716.75
7.2.300.0080.00816.74
7.2.290.0070.01116.45
7.2.260.0130.00715.25
7.2.250.0040.01115.02
7.2.240.0110.00715.18
7.2.230.0110.00315.22
7.2.220.0060.01015.02
7.2.210.0040.01215.23
7.2.200.0060.00915.10
7.2.190.0060.00914.95
7.2.180.0040.00815.15
7.2.170.0070.00715.12
7.2.160.0100.00315.12
7.2.150.0060.00617.04
7.2.140.0090.00617.01
7.2.130.0050.01117.00
7.2.120.0040.01116.91
7.2.110.0080.00316.86
7.2.100.0060.00617.07
7.2.90.0060.00917.05
7.2.80.0060.00716.90
7.2.70.0070.00716.72
7.2.60.0030.01116.82
7.2.50.0080.00716.86
7.2.40.0070.01016.94
7.2.30.0060.01016.88
7.2.20.0030.01216.85
7.2.10.0080.00716.83
7.2.00.0060.00517.71
7.1.330.0030.01016.04
7.1.320.0100.00615.76
7.1.310.0000.01415.68
7.1.300.0000.01215.86
7.1.290.0000.01715.88
7.1.280.0000.01015.55
7.1.270.0070.00715.74
7.1.260.0000.01315.55
7.1.250.0040.01015.79
7.1.240.0060.00615.77
7.1.230.0050.00315.58
7.1.220.0040.00815.93
7.1.210.0060.00615.85
7.1.200.0020.01215.84
7.1.190.0030.00616.04
7.1.180.0040.01215.82
7.1.170.0070.00315.94
7.1.160.0000.00815.95
7.1.150.0040.00815.57
7.1.140.0000.01015.83
7.1.130.0060.00615.88
7.1.120.0030.00715.63
7.1.110.0080.00415.80
7.1.100.0070.00716.99
7.1.90.0060.00615.75
7.1.80.0000.01315.96
7.1.70.0030.00716.44
7.1.60.0060.01217.69
7.1.50.0070.01016.50
7.1.40.0040.01115.78
7.1.30.0060.00816.05
7.1.20.0040.00415.75
7.1.10.0040.00815.89
7.1.00.0020.04219.12
7.0.330.0030.01315.22
7.0.320.0040.01115.34
7.0.310.0100.00315.12
7.0.300.0060.00615.49
7.0.290.0060.00315.25
7.0.280.0030.00915.46
7.0.270.0060.00615.48
7.0.260.0050.00315.18
7.0.250.0080.00415.25
7.0.240.0080.00015.53
7.0.230.0070.00715.16
7.0.220.0080.00415.39
7.0.210.0000.00915.58
7.0.200.0080.00316.17
7.0.190.0000.01315.53
7.0.180.0090.00315.36
7.0.170.0070.00715.10
7.0.160.0030.00715.47
7.0.150.0040.00815.48
7.0.140.0070.00715.45
7.0.130.0030.01015.29
7.0.120.0070.00415.41
7.0.110.0030.01015.49
7.0.100.0000.00815.20
7.0.90.0070.00315.52
7.0.80.0040.01115.55
7.0.70.0000.01115.17
7.0.60.0030.02517.72
7.0.50.0070.04416.67
7.0.40.0100.04116.79
7.0.30.0130.04716.68
7.0.20.0230.04016.89
7.0.10.0170.03516.81
7.0.00.0120.04016.89
5.6.400.0070.00314.03
5.6.390.0100.00714.29
5.6.380.0030.01014.06
5.6.370.0080.00414.14
5.6.360.0030.00614.03
5.6.350.0030.01013.93
5.6.340.0080.00814.01
5.6.330.0000.01114.37
5.6.320.0100.00314.04
5.6.310.0060.00614.02
5.6.300.0060.00614.05
5.6.290.0110.00314.11
5.6.280.0000.02517.43
5.6.270.0030.00614.32
5.6.260.0060.00314.32
5.6.250.0070.00313.91
5.6.240.0110.00314.36
5.6.230.0000.01314.17
5.6.220.0000.01213.99
5.6.210.0120.04017.49
5.6.200.0040.02616.04
5.6.190.0080.02117.33
5.6.180.0080.04217.46
5.6.170.0190.02817.38
5.6.160.0120.04017.36
5.6.150.0060.02516.28
5.6.140.0060.04116.07
5.6.130.0080.04016.09
5.6.120.0030.02617.54
5.6.110.0070.04717.42
5.6.100.0050.04217.65
5.6.90.0120.03317.42
5.6.80.0050.03717.26
5.6.70.2220.02317.22
5.6.60.0000.00914.01
5.6.50.0000.01514.09
5.6.40.0090.00014.09
5.6.30.0090.00914.17
5.6.20.0100.00713.94
5.6.10.0040.00814.07
5.6.00.0080.00814.11
5.5.380.0070.00714.08
5.5.370.0070.01014.20
5.5.360.0030.00914.06
5.5.350.0100.03717.36
5.5.340.0130.03515.99
5.5.330.0030.02717.35
5.5.320.0080.03017.19
5.5.310.0180.02017.30
5.5.300.0120.04016.11
5.5.290.0130.04016.08
5.5.280.0080.02517.41
5.5.270.0120.04217.37
5.5.260.0100.04417.50
5.5.250.0050.04017.22
5.5.240.0030.03817.11
5.5.230.0040.00414.21
5.5.220.0030.00613.87
5.5.210.0100.00714.08
5.5.200.0040.00814.09
5.5.190.0070.01013.62
5.5.180.0070.01014.13
5.5.170.0040.00813.87
5.5.160.0030.01314.06
5.5.150.0030.00613.99
5.5.140.0040.01113.97
5.5.130.0030.01014.04
5.5.120.0040.00413.83
5.5.110.0030.00714.03
5.5.100.0100.00714.13
5.5.90.0030.01414.05
5.5.80.0070.00714.02
5.5.70.0130.00014.20
5.5.60.0070.01013.90
5.5.50.0030.01014.11
5.5.40.0140.00013.80
5.5.30.0040.01213.97
5.5.20.0030.00913.95
5.5.10.0070.00713.73
5.5.00.0040.00813.94
5.4.450.0410.03115.32
5.4.440.0470.02715.13
5.4.430.0430.02715.19
5.4.420.0400.03815.25
5.4.410.0420.02814.90
5.4.400.0350.03314.79
5.4.390.0400.02814.98
5.4.380.0380.03115.03
5.4.370.0470.02215.00
5.4.360.0370.02814.89
5.4.350.0330.03515.02
5.4.340.0420.02315.06
5.4.330.0070.00710.89
5.4.320.0430.03014.93
5.4.310.0430.03314.88
5.4.300.0390.02714.89
5.4.290.0400.03314.80
5.4.280.0400.02814.84
5.4.270.0470.02714.88
5.4.260.0440.02914.84
5.4.250.0400.03114.92
5.4.240.0400.03215.11
5.4.230.0400.03015.05
5.4.220.0480.03814.85
5.4.210.0470.02915.12
5.4.200.0390.02514.71
5.4.190.0470.04514.89
5.4.180.0380.03115.04
5.4.170.0350.03114.96
5.4.160.0330.03514.88
5.4.150.0330.03714.82
5.4.140.0410.02813.41
5.4.130.0370.03113.52
5.4.120.0390.02813.62
5.4.110.0400.02813.57
5.4.100.0420.02513.56
5.4.90.0400.02713.62
5.4.80.0410.02313.70
5.4.70.0390.02913.68
5.4.60.0370.03413.72
5.4.50.0450.03013.56
5.4.40.0400.02713.67
5.4.30.0450.02613.50
5.4.20.0410.03313.61
5.4.10.0280.03113.61
5.4.00.0250.03413.32

preferences:
40.56 ms | 400 KiB | 5 Q