3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(array $b){ echo $b; } class A{ protected $b; public function getB() { return $this->b; } } $a= new A(); test($a->getB());

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.0180.00018.68
8.3.50.0120.01022.79
8.3.40.0120.01218.96
8.3.30.0090.00918.84
8.3.20.0070.00020.20
8.3.10.0040.00421.91
8.3.00.0000.00819.62
8.2.180.0100.01016.75
8.2.170.0110.00322.96
8.2.160.0070.00721.12
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00022.20
8.2.120.0050.00226.35
8.2.110.0100.00022.26
8.2.100.0080.00318.03
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0100.00017.63
8.2.60.0000.00817.80
8.2.50.0090.00018.10
8.2.40.0000.00822.15
8.2.30.0060.00321.07
8.2.20.0050.00317.63
8.2.10.0040.00417.89
8.2.00.0000.00918.00
8.1.280.0170.00325.92
8.1.270.0060.00323.61
8.1.260.0050.00328.09
8.1.250.0050.00228.09
8.1.240.0050.00522.74
8.1.230.0040.00717.70
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0000.01018.10
8.1.170.0000.00918.46
8.1.160.0040.00422.15
8.1.150.0000.00720.95
8.1.140.0070.00019.43
8.1.130.0030.00317.57
8.1.120.0040.00417.45
8.1.110.0040.00417.41
8.1.100.0050.00317.30
8.1.90.0050.00317.42
8.1.80.0020.00517.46
8.1.70.0030.00517.36
8.1.60.0000.00817.46
8.1.50.0040.00417.42
8.1.40.0060.00617.54
8.1.30.0040.00417.69
8.1.20.0040.00417.73
8.1.10.0030.00617.60
8.1.00.0000.00817.47
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0070.00018.38
8.0.270.0070.00017.21
8.0.260.0000.00817.13
8.0.250.0060.00016.97
8.0.240.0000.00816.84
8.0.230.0030.00316.85
8.0.220.0000.00816.85
8.0.210.0000.00716.93
8.0.200.0030.00316.94
8.0.190.0000.00717.02
8.0.180.0030.00516.80
8.0.170.0000.00716.82
8.0.160.0050.00216.86
8.0.150.0000.00716.81
8.0.140.0040.00416.74
8.0.130.0000.00613.36
8.0.120.0030.00616.86
8.0.110.0070.00016.98
8.0.100.0000.00816.93
8.0.90.0070.00016.77
8.0.80.0060.01016.82
8.0.70.0030.00316.76
8.0.60.0030.00516.74
8.0.50.0000.00816.95
8.0.30.0140.00616.96
8.0.20.0090.01017.40
8.0.10.0000.00816.97
8.0.00.0130.01016.59
7.4.330.0060.00015.08
7.4.320.0030.00316.38
7.4.300.0060.00016.53
7.4.290.0030.00616.65
7.4.280.0040.00416.64
7.4.270.0030.00316.41
7.4.260.0000.00716.59
7.4.250.0030.00516.47
7.4.240.0070.00016.53
7.4.230.0030.00316.43
7.4.220.0160.00316.61
7.4.210.0100.01016.66
7.4.200.0070.00016.58
7.4.160.0100.00616.44
7.4.150.0030.01417.40
7.4.140.0120.00517.86
7.4.130.0110.00816.45
7.4.120.0110.00616.64
7.4.110.0070.01116.62
7.4.100.0100.00716.46
7.4.90.0130.01016.58
7.4.80.0060.00919.39
7.4.70.0130.00316.48
7.4.60.0110.00616.49
7.4.50.0000.01816.55
7.4.40.0090.00916.68
7.4.30.0030.01616.48
7.4.00.0100.00315.02
7.3.330.0050.00013.35
7.3.320.0060.00013.23
7.3.310.0040.00416.42
7.3.300.0070.00016.38
7.3.290.0120.00416.34
7.3.280.0090.01016.34
7.3.270.0090.00917.40
7.3.260.0070.01116.47
7.3.250.0100.00816.44
7.3.240.0080.00816.35
7.3.230.0080.00916.41
7.3.210.0110.00816.48
7.3.200.0080.00816.36
7.3.190.0090.01216.25
7.3.180.0130.00516.37
7.3.170.0100.00616.31
7.3.160.0030.01316.38
7.2.330.0110.00716.54
7.2.320.0090.00616.75
7.2.310.0110.00716.46
7.2.300.0070.01016.79
7.2.290.0080.00916.64
7.2.60.0090.00616.78
7.2.00.0000.00919.36
7.1.200.0060.00615.75
7.1.100.0000.01418.16
7.1.70.0040.00416.97
7.1.60.0000.01119.75
7.1.50.0070.01516.82
7.1.00.0100.07022.45
7.0.200.0200.01014.77
7.0.90.0930.00020.02
7.0.80.0730.00019.98
7.0.70.0770.00020.01
7.0.60.0730.00020.02
7.0.50.0730.00020.27
7.0.40.1000.00020.45
7.0.30.0770.00020.38
7.0.20.0730.00020.46
7.0.10.0930.00020.39
7.0.00.0770.00020.37
5.6.240.0930.00020.61
5.6.230.0770.00020.70
5.6.220.0730.00020.62
5.6.210.0700.00020.83
5.6.200.0800.00021.07
5.6.190.0800.00021.08
5.6.180.0870.00021.07
5.6.170.0800.00021.11
5.6.160.0830.00021.20
5.6.150.0830.00021.10
5.6.140.0730.00021.08
5.6.130.0900.00021.02
5.6.120.0900.00021.07
5.6.110.0730.00021.14
5.6.100.0770.00021.01
5.6.90.0700.00021.16
5.6.80.0670.00020.41
5.6.70.0670.00020.45
5.6.60.0670.00020.46
5.6.50.0670.00020.41
5.6.40.0770.00020.50
5.6.30.0770.00020.38
5.6.20.0670.00020.45
5.6.10.0730.00020.38
5.6.00.0630.00020.45

preferences:
66.87 ms | 401 KiB | 5 Q