3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; public function getBar() { echo $this->$bar; } } echo (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.0170.00018.20
8.3.50.0150.00521.15
8.3.40.0110.00718.63
8.3.30.0110.00318.68
8.3.20.0110.00420.34
8.3.10.0070.00021.72
8.3.00.0030.00619.55
8.2.180.0190.00016.88
8.2.170.0090.00622.96
8.2.160.0090.00619.29
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0090.00317.63
8.2.110.0050.00520.35
8.2.100.0110.00417.72
8.2.90.0080.00019.22
8.2.80.0070.00317.97
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0000.00820.97
8.2.30.0000.00818.00
8.2.20.0020.00517.71
8.2.10.0000.00818.04
8.2.00.0040.00418.01
8.1.280.0150.00625.92
8.1.270.0060.00320.38
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0100.00023.76
8.1.230.0000.01120.97
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0100.00017.10
8.1.190.0030.00517.00
8.1.180.0000.00718.10
8.1.170.0080.00018.46
8.1.160.0030.00322.13
8.1.150.0000.00718.83
8.1.140.0030.00617.34
8.1.130.0030.00317.54
8.1.120.0070.00017.39
8.1.110.0000.00817.36
8.1.100.0000.00717.42
8.1.90.0040.00417.39
8.1.80.0000.00817.36
8.1.70.0000.00717.36
8.1.60.0040.00417.50
8.1.50.0050.00517.38
8.1.40.0050.00317.32
8.1.30.0040.00417.51
8.1.20.0000.00817.48
8.1.10.0040.00417.50
8.1.00.0000.00817.37
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00818.43
8.0.270.0000.00717.25
8.0.260.0000.00617.18
8.0.250.0070.00016.98
8.0.240.0000.00616.98
8.0.230.0030.00316.81
8.0.220.0030.00316.87
8.0.210.0040.00416.87
8.0.200.0070.00016.85
8.0.190.0080.00416.84
8.0.180.0040.00416.80
8.0.170.0040.00416.94
8.0.160.0030.00316.89
8.0.150.0030.00316.75
8.0.140.0040.00416.70
8.0.130.0040.00413.29
8.0.120.0060.00316.89
8.0.110.0000.00816.79
8.0.100.0030.00316.97
8.0.90.0040.00416.78
8.0.80.0080.00716.87
8.0.70.0070.00016.77
8.0.60.0000.00716.90
8.0.50.0030.00516.79
8.0.30.0090.00917.17
8.0.20.0150.00717.40
8.0.10.0040.00417.06
8.0.00.0100.00716.77
7.4.330.0050.00015.08
7.4.320.0000.00616.53
7.4.300.0030.00316.58
7.4.290.0030.00316.52
7.4.280.0060.00316.34
7.4.270.0000.00716.43
7.4.260.0070.00016.43
7.4.250.0080.00016.48
7.4.240.0020.00516.42
7.4.230.0030.00316.43
7.4.220.0100.01416.41
7.4.210.0070.00716.44
7.4.200.0030.00316.54
7.4.160.0000.01616.43
7.4.150.0110.00717.40
7.4.140.0090.01217.86
7.4.130.0070.01116.44
7.4.120.0150.00216.47
7.4.110.0110.00616.63
7.4.100.0130.00316.50
7.4.90.0100.00716.44
7.4.80.0060.01019.39
7.4.70.0120.00416.48
7.4.60.0000.01516.48
7.4.50.0030.00616.46
7.4.40.0100.00716.40
7.4.30.0090.00816.38
7.4.00.0070.00714.83
7.3.330.0030.00313.23
7.3.320.0060.00013.36
7.3.310.0040.00416.18
7.3.300.0000.00716.30
7.3.290.0030.00316.18
7.3.280.0120.00516.32
7.3.270.0070.01017.40
7.3.260.0150.00416.31
7.3.250.0150.00216.46
7.3.240.0070.01016.45
7.3.230.0120.00916.39
7.3.210.0070.01016.27
7.3.200.0130.00319.39
7.3.190.0130.00316.39
7.3.180.0070.01016.63
7.3.170.0070.01016.45
7.3.160.0130.00516.58
7.3.120.0110.00714.81
7.3.110.0040.01115.02
7.3.100.0090.00614.84
7.3.90.0030.01214.86
7.3.80.0060.00614.73
7.3.70.0070.01014.96
7.3.60.0060.00614.91
7.3.50.0100.00614.87
7.3.40.0030.01014.63
7.3.30.0000.01114.86
7.3.20.0030.01416.61
7.3.10.0000.01616.67
7.3.00.0070.00716.72
7.2.330.0090.00916.71
7.2.320.0100.00716.72
7.2.310.0030.01316.64
7.2.300.0190.00316.71
7.2.290.0030.01416.67
7.2.240.0120.00614.78
7.2.230.0040.01414.68
7.2.220.0100.01014.88
7.2.210.0130.00014.96
7.2.200.0000.01014.66
7.2.190.0000.01414.75
7.2.180.0060.00615.09
7.2.170.0070.00714.98
7.2.160.0090.00014.61
7.2.150.0050.00516.87
7.2.140.0080.00817.00
7.2.130.0040.00716.95
7.2.120.0080.00416.69
7.2.110.0070.00716.90
7.2.100.0030.00716.87
7.2.90.0060.01116.86
7.2.80.0070.01016.52
7.2.70.0120.00616.84
7.2.60.0100.00616.88
7.2.50.0030.00717.05
7.2.40.0070.00716.91
7.2.30.0030.01216.91
7.2.20.0030.00716.82
7.2.10.0120.00316.77
7.2.00.0050.00617.92
7.1.330.0070.01015.71
7.1.320.0060.01015.74
7.1.310.0110.00415.58
7.1.300.0040.00415.67
7.1.290.0070.00715.55
7.1.280.0070.00715.64
7.1.270.0070.00715.72
7.1.260.0090.00415.66
7.1.250.0090.00315.74
7.1.200.0210.00715.85
7.1.100.0090.00318.04
7.1.70.0000.00817.12
7.1.60.0040.02120.03
7.1.50.0040.01916.57
7.1.00.0100.07022.57
7.0.200.0250.00614.86
7.0.60.0070.08019.90
7.0.50.0070.03717.95
7.0.40.0070.08720.17
7.0.30.0200.04320.23
7.0.20.0300.06720.21
7.0.10.0400.07020.09
7.0.00.0100.08020.05
5.6.280.0030.04021.08
5.6.210.0000.04720.68
5.6.200.0130.07318.29
5.6.190.0100.05320.63
5.6.180.0070.04020.48
5.6.170.0330.04320.44
5.6.160.0200.07020.62
5.6.150.0100.03318.17
5.6.140.0070.08018.16
5.6.130.0030.05318.25
5.6.120.0070.03721.13
5.6.110.0070.05020.98
5.6.100.0030.05021.11
5.6.90.0070.08321.10
5.6.80.0100.05720.27
5.6.70.3170.03720.54
5.5.350.0070.03720.41
5.5.340.0100.05318.00
5.5.330.0130.08020.34
5.5.320.0370.05720.20
5.5.310.0330.08020.41
5.5.300.0100.05718.08
5.5.290.0130.08017.92
5.5.280.0000.05320.94
5.5.270.0100.05320.87
5.5.260.0070.08720.77
5.5.250.0100.07020.55
5.5.240.0070.03720.16
5.4.450.0830.05319.17
5.4.440.0670.05319.45
5.4.430.0600.06319.38
5.4.420.0730.06019.19
5.4.410.0670.07719.04
5.4.400.0700.06019.28
5.4.390.0730.05718.98
5.4.380.0670.05719.13
5.4.370.0770.04718.80
5.4.360.0630.05719.01
5.4.350.0600.06019.36
5.4.340.0770.05319.36
5.4.320.0670.05719.28
5.4.310.0770.04719.29
5.4.300.0500.05718.88
5.4.290.0330.05318.86
5.4.280.0130.06319.23
5.4.270.0170.05019.13
5.4.260.0530.06019.23
5.4.250.0400.05719.22
5.4.240.0030.06319.23
5.4.230.0230.04019.10
5.4.220.0430.05719.27
5.4.210.0630.05719.26
5.4.200.0230.06016.79
5.4.190.0170.04719.25
5.4.180.0230.04719.34
5.4.170.0570.06019.22
5.4.160.0800.04318.96
5.4.150.0670.04719.15
5.4.140.0670.05316.38
5.4.130.0830.06016.51
5.4.120.0800.06316.32
5.4.110.0730.04316.35
5.4.100.0630.05716.40
5.4.90.0570.06016.53
5.4.80.0800.05016.43
5.4.70.0970.06316.52
5.4.60.0700.06016.52
5.4.50.0600.05316.36
5.4.40.0800.05716.39
5.4.30.0630.05316.47
5.4.20.0700.04716.53
5.4.10.0800.04716.37
5.4.00.0800.04315.86

preferences:
60.46 ms | 401 KiB | 5 Q