3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $baz = 'foobar'; public function bar() { self::functionName(); $this->functionName(); } public function functionName() { echo $this->baz . "\n"; } } $f = new Foo(); $f->bar(); $f::functionName();

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.0070.01018.43
8.3.60.0070.01116.63
8.3.50.0230.01121.19
8.3.40.0150.00418.67
8.3.30.0110.00618.89
8.3.20.0070.00020.19
8.3.10.0090.00023.42
8.3.00.0000.00819.79
8.2.180.0110.00418.42
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0090.00017.63
8.2.110.0040.00822.16
8.2.100.0040.00817.93
8.2.90.0030.00519.14
8.2.80.0080.00017.97
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00421.04
8.2.30.0030.00320.62
8.2.20.0040.00417.79
8.2.10.0050.00317.99
8.2.00.0040.00417.89
8.1.280.0040.01125.92
8.1.270.0070.01023.79
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0100.00722.72
8.1.230.0060.00619.01
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0090.00017.13
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0000.00722.05
8.1.150.0000.00718.91
8.1.140.0030.00519.64
8.1.130.0080.00017.70
8.1.120.0040.00417.36
8.1.110.0000.00717.49
8.1.100.0040.00417.43
8.1.90.0030.00417.35
8.1.80.0000.00817.44
8.1.70.0070.00017.42
8.1.60.0000.00817.60
8.1.50.0000.00817.57
8.1.40.0040.00717.47
8.1.30.0060.00617.48
8.1.20.0000.00817.59
8.1.10.0030.00617.54
8.1.00.0030.00517.36
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00518.34
8.0.270.0000.00717.21
8.0.260.0030.00317.16
8.0.250.0050.00316.95
8.0.240.0000.00616.99
8.0.230.0070.00016.91
8.0.220.0000.00716.94
8.0.210.0030.00316.96
8.0.200.0060.00016.90
8.0.190.0060.00317.05
8.0.180.0030.00616.90
8.0.170.0030.00616.92
8.0.160.0030.00316.95
8.0.150.0040.00416.83
8.0.140.0030.00316.93
8.0.130.0030.00313.42
8.0.120.0040.00416.97
8.0.110.0000.00716.82
8.0.100.0070.00016.84
8.0.90.0000.00717.00
8.0.80.0080.00817.01
8.0.70.0000.00716.84
8.0.60.0040.00416.86
8.0.50.0060.00317.00
8.0.30.0080.00816.96
8.0.20.0090.00917.40
8.0.10.0040.00416.91
8.0.00.0130.00616.65
7.4.330.0000.00515.09
7.4.320.0000.00616.41
7.4.300.0030.00316.44
7.4.290.0000.00716.48
7.4.280.0040.00416.48
7.4.270.0030.00316.58
7.4.260.0040.00416.44
7.4.250.0050.00216.61
7.4.240.0040.00316.50
7.4.230.0080.00016.60
7.4.220.0160.00616.35
7.4.210.0070.00716.46
7.4.200.0000.00716.34
7.4.160.0130.00716.68
7.4.150.0090.01217.40
7.4.140.0170.00317.86
7.4.130.0110.00616.54
7.4.120.0100.00816.41
7.4.110.0140.00316.39
7.4.100.0110.00616.71
7.4.90.0090.01316.39
7.4.80.0000.02419.39
7.4.70.0060.01916.61
7.4.60.0100.00716.57
7.4.50.0040.00416.57
7.4.40.0060.01016.66
7.4.30.0120.00916.39
7.4.00.0070.01014.98
7.3.330.0000.00513.42
7.3.320.0000.00513.43
7.3.310.0000.00716.24
7.3.300.0040.00416.39
7.3.290.0090.00816.43
7.3.280.0100.00816.44
7.3.270.0120.00417.40
7.3.260.0070.01016.57
7.3.240.0080.00916.52
7.3.230.0050.01116.39
7.3.210.0120.00816.60
7.3.200.0110.00716.69
7.3.190.0100.00716.35
7.3.180.0060.01016.41
7.3.170.0080.00816.56
7.3.160.0030.01316.35
7.3.10.0000.01416.43
7.3.00.0090.00616.59
7.2.330.0090.00916.69
7.2.320.0060.01416.44
7.2.310.0150.01016.81
7.2.300.0100.00616.48
7.2.290.0030.01316.76
7.2.130.0090.00316.67
7.2.120.0050.00516.82
7.2.110.0090.00016.68
7.2.100.0030.01016.84
7.2.90.0080.00817.09
7.2.80.0060.00917.00
7.2.70.0090.00616.76
7.2.60.0080.00616.96
7.2.50.0090.00617.02
7.2.40.0100.00316.81
7.2.30.0110.00316.90
7.2.20.0080.00816.99
7.2.10.0060.00316.84
7.2.00.0050.00718.40
7.1.250.0000.01415.70
7.1.200.0040.00815.64
7.1.100.0060.00618.18
7.1.70.0120.00317.20
7.1.60.0120.00919.50
7.1.50.0060.01516.60
7.1.00.0000.08022.35
7.0.200.0060.00316.69
7.0.60.0070.08019.79
7.0.50.0130.07317.86
7.0.40.0070.07720.21
7.0.30.0270.04020.26
7.0.20.0230.04720.27
7.0.10.0130.06320.26
7.0.00.0070.05020.11
5.6.280.0000.03320.89
5.6.210.0030.07720.50
5.6.200.0130.08318.25
5.6.190.0100.07320.42
5.6.180.4000.04020.38
5.6.170.0270.05020.71
5.6.160.0070.08320.50
5.6.150.0070.07718.25
5.6.140.0000.04718.16
5.6.130.0070.05318.15
5.6.120.0100.04721.10
5.6.110.0070.06721.15
5.6.100.0030.04320.89
5.6.90.0170.09320.91
5.6.80.0100.08320.49
5.6.70.2830.03320.53
5.5.350.0170.06020.38
5.5.340.0100.03718.08
5.5.330.0030.04720.13
5.5.320.0200.08320.29
5.5.310.0270.08020.50
5.5.300.0030.05017.92
5.5.290.0100.06317.94
5.5.280.0130.08020.77
5.5.270.0070.04020.96
5.5.260.0070.06720.77
5.5.250.0100.04720.62
5.5.240.0100.06020.16
5.4.450.0170.06019.58
5.4.440.0270.05319.36
5.4.430.0300.04319.55
5.4.420.0270.05019.61
5.4.410.0270.05319.41
5.4.400.0230.05318.84
5.4.390.0200.05719.25
5.4.380.0170.06319.25
5.4.370.0230.06019.22
5.4.360.0170.08719.24
5.4.350.0270.04718.84
5.4.340.0170.05719.31
5.4.320.0200.05719.22
5.4.310.0270.06019.23
5.4.300.0200.05018.88
5.4.290.0170.05319.25
5.4.280.0130.06319.04
5.4.270.0130.06018.81
5.4.260.0070.06319.04
5.4.250.0070.06719.20
5.4.240.0130.06018.78
5.4.230.0270.04319.21
5.4.220.0100.06719.01
5.4.210.0300.04319.20
5.4.200.0170.05718.88
5.4.190.0130.05718.83
5.4.180.0170.06019.03
5.4.170.0230.05319.07
5.4.160.0200.05318.97
5.4.150.0300.05018.82
5.4.140.0130.06316.30
5.4.130.0130.05716.50
5.4.120.0270.06716.43
5.4.110.0230.05016.57
5.4.100.0330.05716.56
5.4.90.0230.05016.45
5.4.80.0230.06016.46
5.4.70.0230.06716.32
5.4.60.0130.05716.50
5.4.50.0300.04016.52
5.4.40.0230.04716.55
5.4.30.0130.05716.39
5.4.20.0170.05316.47
5.4.10.0230.05016.43
5.4.00.0300.04315.89

preferences:
62.06 ms | 401 KiB | 5 Q