3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; public function getBar() { echo $this->$bar; } } (new Foo)->getBar();

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.0120.00618.64
8.3.50.0160.00321.03
8.3.40.0140.00718.86
8.3.30.0040.01118.58
8.3.20.0070.00020.25
8.3.10.0070.00021.90
8.3.00.0040.00419.69
8.2.180.0090.01316.63
8.2.170.0090.00622.96
8.2.160.0060.00919.32
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0110.00017.75
8.2.110.0070.00322.27
8.2.100.0110.00017.63
8.2.90.0000.00719.05
8.2.80.0050.00317.97
8.2.70.0030.00517.50
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0030.00621.19
8.2.30.0040.00717.89
8.2.20.0040.00417.71
8.2.10.0050.00317.86
8.2.00.0040.00417.89
8.1.280.0170.00325.92
8.1.270.0050.00320.33
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00920.74
8.1.230.0060.00617.42
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00517.13
8.1.180.0030.00618.10
8.1.170.0090.00018.59
8.1.160.0030.00322.18
8.1.150.0050.00518.87
8.1.140.0050.00517.25
8.1.130.0070.00017.63
8.1.120.0040.00417.29
8.1.110.0040.00417.35
8.1.100.0030.00517.39
8.1.90.0050.00217.27
8.1.80.0000.00817.34
8.1.70.0000.00717.37
8.1.60.0040.00417.45
8.1.50.0040.00417.49
8.1.40.0040.00417.34
8.1.30.0040.00417.63
8.1.20.0080.00017.51
8.1.10.0070.00017.37
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0030.00318.29
8.0.270.0040.00417.23
8.0.260.0070.00017.23
8.0.250.0080.00016.87
8.0.240.0030.00316.98
8.0.230.0040.00416.77
8.0.220.0000.00616.88
8.0.210.0000.00816.88
8.0.200.0080.00016.96
8.0.190.0030.00716.96
8.0.180.0000.00816.92
8.0.170.0070.00016.86
8.0.160.0040.00416.86
8.0.150.0030.00316.66
8.0.140.0030.00516.81
8.0.130.0000.00513.35
8.0.120.0060.00316.70
8.0.110.0050.00316.77
8.0.100.0040.00416.85
8.0.90.0030.00416.71
8.0.80.0120.00816.93
8.0.70.0000.00716.93
8.0.60.0040.00416.71
8.0.50.0000.00716.91
8.0.30.0080.01016.99
8.0.20.0100.01317.40
8.0.10.0080.00016.87
8.0.00.0070.01116.86
7.4.330.0020.00215.08
7.4.320.0060.00016.42
7.4.300.0000.00616.55
7.4.290.0000.00716.36
7.4.280.0040.00416.44
7.4.270.0030.00316.44
7.4.260.0000.00716.34
7.4.250.0000.00816.32
7.4.240.0050.00216.55
7.4.230.0030.00316.53
7.4.220.0140.00416.47
7.4.210.0100.00616.51
7.4.200.0030.00316.54
7.4.160.0150.00616.52
7.4.150.0100.00717.40
7.4.140.0170.00517.86
7.4.130.0110.00716.43
7.4.120.0080.01116.54
7.4.110.0060.01216.63
7.4.100.0030.01616.43
7.4.90.0060.01216.33
7.4.80.0030.01519.39
7.4.70.0110.01116.24
7.4.60.0080.00816.47
7.4.50.0060.00316.33
7.4.40.0080.01616.63
7.4.30.0100.00716.52
7.4.00.0100.00714.89
7.3.330.0030.00313.29
7.3.320.0040.00413.32
7.3.310.0070.00016.44
7.3.300.0000.00616.38
7.3.290.0070.00016.38
7.3.280.0130.00716.32
7.3.270.0170.00317.40
7.3.260.0130.01016.51
7.3.250.0090.00916.38
7.3.240.0150.00616.61
7.3.230.0100.01016.52
7.3.210.0120.00616.47
7.3.200.0100.00719.39
7.3.190.0150.00616.35
7.3.180.0070.01016.36
7.3.170.0100.01216.27
7.3.160.0090.00916.32
7.3.10.0070.00716.54
7.3.00.0040.01116.79
7.2.330.0090.00916.54
7.2.320.0100.01016.55
7.2.310.0070.01116.53
7.2.300.0080.00816.68
7.2.290.0060.01216.45
7.2.130.0100.00616.66
7.2.120.0110.00416.73
7.2.110.0070.01016.87
7.2.100.0030.00616.64
7.2.90.0060.01017.11
7.2.80.0060.00916.86
7.2.70.0060.00916.79
7.2.60.0120.00716.99
7.2.50.0060.00316.70
7.2.40.0130.00316.82
7.2.30.0100.00317.06
7.2.20.0030.01016.84
7.2.10.0030.00616.84
7.2.00.0060.00718.01
7.1.250.0040.01115.50
7.1.200.0220.00715.70
7.1.100.0040.01218.00
7.1.70.0060.00917.20
7.1.60.0130.01020.03
7.1.50.0030.01716.98
7.1.00.0030.07722.30
7.0.200.0310.00014.72
7.0.60.0170.07720.00
7.0.50.0000.08717.86
7.0.40.0100.07720.20
7.0.30.0270.05020.26
7.0.20.0270.07020.19
7.0.10.0100.08320.25
7.0.00.0130.07720.07
5.6.280.0100.06721.11
5.6.210.0030.05320.75
5.6.200.0170.06718.29
5.6.190.0070.07020.61
5.6.180.3030.03720.34
5.6.170.0370.07320.47
5.6.160.0100.07320.55
5.6.150.0070.03318.21
5.6.140.0030.05718.18
5.6.130.0100.08018.25
5.6.120.0070.05021.09
5.6.110.0030.04020.98
5.6.100.0070.03721.01
5.6.90.0130.08020.97
5.6.80.0200.07020.43
5.6.70.4000.03720.36
5.5.350.0100.04320.32
5.5.340.0000.08717.95
5.5.330.0170.07320.31
5.5.320.3400.04320.20
5.5.310.0200.05020.19
5.5.300.0130.07317.98
5.5.290.0130.07317.98
5.5.280.0000.04720.88
5.5.270.0000.04720.84
5.5.260.0070.08020.89
5.5.250.0070.07320.77
5.5.240.0400.06020.27
5.4.450.0500.05719.57
5.4.440.0630.07319.45
5.4.430.0600.08019.30
5.4.420.0700.05719.45
5.4.410.0500.06319.46
5.4.400.0500.05019.26
5.4.390.0500.05319.11
5.4.380.0830.06019.06
5.4.370.0470.04319.01
5.4.360.0070.06319.21
5.4.350.0300.05319.26
5.4.340.0400.06319.26
5.4.320.0370.06019.14
5.4.310.0270.04719.14
5.4.300.0130.05319.25
5.4.290.0400.05319.05
5.4.280.0170.06019.22
5.4.270.0100.05319.35
5.4.260.0400.05719.13
5.4.250.0400.05719.25
5.4.240.0470.04318.84
5.4.230.0430.05718.86
5.4.220.0400.06019.34
5.4.210.0600.05719.07
5.4.200.0430.04716.94
5.4.190.0570.05019.22
5.4.180.0500.05018.97
5.4.170.0570.06018.91
5.4.160.0500.05719.12
5.4.150.0500.04718.90
5.4.140.0700.04316.33
5.4.130.0530.04316.30
5.4.120.0470.05316.53
5.4.110.0500.04716.32
5.4.100.0530.04716.30
5.4.90.0570.05016.72
5.4.80.0500.06716.32
5.4.70.0470.05716.53
5.4.60.0600.04016.29
5.4.50.0500.05016.41
5.4.40.0470.06316.47
5.4.30.0330.05716.28
5.4.20.0600.07316.54
5.4.10.0500.05016.39
5.4.00.0570.05015.76

preferences:
44.51 ms | 401 KiB | 5 Q