3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Bar { public function getSalt(); } class Foo implements Bar { public $salt; public function __call($name, $args) { if ($name == 'getSalt') return $this->salt; } } new Foo;

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.0140.00718.19
8.3.50.0080.00821.08
8.3.40.0040.01118.67
8.3.30.0140.00020.34
8.3.20.0050.00220.13
8.3.10.0000.00820.80
8.3.00.0040.00422.42
8.2.180.0130.01016.38
8.2.170.0140.00422.96
8.2.160.0130.00722.27
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.67
8.2.110.0030.00619.30
8.2.100.0110.00017.78
8.2.90.0000.00819.05
8.2.80.0000.00918.04
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0070.00218.07
8.2.40.0040.00418.21
8.2.30.0000.00719.36
8.2.20.0030.00517.71
8.2.10.0000.00817.59
8.2.00.0090.00017.59
8.1.280.0080.00625.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00023.88
8.1.230.0090.00320.84
8.1.220.0040.00418.77
8.1.210.0040.00420.95
8.1.200.0040.00417.25
8.1.190.0040.00417.39
8.1.180.0080.00018.10
8.1.170.0000.00918.46
8.1.160.0050.00218.80
8.1.150.0040.00418.58
8.1.140.0050.00317.38
8.1.130.0030.00317.70
8.1.120.0050.00317.30
8.1.110.0040.00417.39
8.1.100.0040.00417.30
8.1.90.0050.00217.40
8.1.80.0000.00717.27
8.1.70.0040.00417.36
8.1.60.0000.00817.55
8.1.50.0000.00817.34
8.1.40.0000.00817.39
8.1.30.0040.00417.49
8.1.20.0040.00417.49
8.1.10.0040.00417.46
8.1.00.0000.00917.29
8.0.300.0040.00419.81
8.0.290.0000.00716.93
8.0.280.0000.00718.21
8.0.270.0000.00717.05
8.0.260.0060.00016.72
8.0.250.0050.00316.91
8.0.240.0030.00616.84
8.0.230.0050.00316.82
8.0.220.0040.00416.92
8.0.210.0030.00316.90
8.0.200.0000.00616.93
8.0.190.0030.00416.89
8.0.180.0000.00816.96
8.0.170.0000.00816.93
8.0.160.0000.00716.90
8.0.150.0030.00316.84
8.0.140.0030.00516.73
8.0.130.0000.00613.29
8.0.120.0040.00416.86
8.0.110.0050.00216.66
8.0.100.0040.00416.82
8.0.90.0030.00616.87
8.0.80.0060.00916.82
8.0.70.0050.00316.86
8.0.60.0070.00016.70
8.0.50.0040.00416.78
8.0.30.0110.00717.11
8.0.20.0170.00517.40
8.0.10.0040.00417.12
8.0.00.0160.00516.69
7.4.330.0020.00515.02
7.4.320.0060.00016.57
7.4.300.0030.00316.53
7.4.290.0000.00716.51
7.4.280.0030.00316.57
7.4.270.0040.00416.33
7.4.260.0030.00313.22
7.4.250.0030.00316.39
7.4.240.0000.00716.43
7.4.230.0030.00316.27
7.4.220.0100.00616.39
7.4.210.0060.00916.49
7.4.200.0070.00016.55
7.4.190.0040.00416.60
7.4.160.0120.00916.38
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0080.01216.48
7.4.120.0130.00316.44
7.4.110.0060.01116.49
7.4.100.0160.00316.35
7.4.90.0140.01016.54
7.4.80.0090.00819.39
7.4.70.0040.01216.53
7.4.60.0100.00716.55
7.4.50.0040.00416.28
7.4.40.0060.00922.77
7.4.30.0090.00916.19
7.4.00.0030.01014.85
7.3.330.0020.00213.20
7.3.320.0060.00013.01
7.3.310.0000.00716.11
7.3.300.0000.00716.25
7.3.290.0030.01016.24
7.3.280.0060.01016.24
7.3.270.0110.00817.40
7.3.260.0070.01018.24
7.3.250.0130.00716.29
7.3.240.0080.00816.29
7.3.230.0060.01116.53
7.3.210.0090.00616.32
7.3.200.0140.00619.39
7.3.190.0090.00916.22
7.3.180.0190.00316.36
7.3.170.0090.00916.55
7.3.160.0040.01116.17
7.3.120.0040.00714.79
7.3.10.0090.00616.51
7.3.00.0090.00616.47
7.2.330.0060.01216.26
7.2.320.0140.00716.53
7.2.310.0150.00916.51
7.2.300.0030.01316.47
7.2.290.0120.00616.35
7.2.130.0000.01416.75
7.2.120.0040.00716.43
7.2.110.0090.00616.51
7.2.100.0060.01016.84
7.2.90.0070.00716.76
7.2.80.0000.01516.85
7.2.70.0030.01516.88
7.2.60.0060.01016.60
7.2.50.0070.00716.70
7.2.40.0000.01416.43
7.2.30.0040.01016.56
7.2.20.0060.00916.90
7.2.10.0090.00016.86
7.2.00.0080.01217.99
7.1.250.0030.01215.77
7.1.200.0130.00015.77
7.1.100.0000.01117.88
7.1.70.0000.00817.04
7.1.60.0140.01019.17
7.1.50.0110.01116.53
7.1.00.0030.03322.43
7.0.200.0000.01016.39
7.0.140.0070.07022.00
7.0.60.0070.08320.01
7.0.50.0100.06017.91
7.0.40.0100.08720.20
7.0.30.0530.05020.12
7.0.20.0200.04720.10
7.0.10.0370.06020.25
7.0.00.0000.09020.18
5.6.280.0070.07021.10
5.6.210.0070.08720.77
5.6.200.0070.05718.28
5.6.190.0100.08720.42
5.6.180.0300.08020.61
5.6.170.0270.08020.55
5.6.160.0100.06720.57
5.6.150.0000.08718.20
5.6.140.0100.07018.28
5.6.130.0000.05318.15
5.6.120.0070.05021.02
5.6.110.0170.05720.96
5.6.100.0130.07721.19
5.6.90.0130.05321.02
5.6.80.0130.06720.38
5.6.70.4300.05020.28
5.5.350.0330.06720.32
5.5.340.0030.08317.99
5.5.330.0070.05320.41
5.5.320.3770.04320.30
5.5.310.0170.05020.26
5.5.300.0030.08318.10
5.5.290.0070.08018.08
5.5.280.0070.06320.68
5.5.270.0030.04020.87
5.5.260.0000.07720.79
5.5.250.0100.06320.56
5.5.240.0130.04020.35
5.4.450.0170.06719.57
5.4.440.0070.05019.27
5.4.430.0100.05319.27
5.4.420.0070.08019.47
5.4.410.0030.03719.39
5.4.400.0030.07318.99
5.4.390.0000.08319.00
5.4.380.0030.04319.13
5.4.370.0030.06719.20
5.4.360.0070.05318.94
5.4.350.0070.06718.95
5.4.340.0030.06019.06
5.4.320.0030.06718.88
5.4.310.0000.07719.08
5.4.300.0000.07018.99
5.4.290.0030.06019.22
5.4.280.0070.07019.22
5.4.270.0030.05719.21
5.4.260.0000.06018.87
5.4.250.0070.04319.08
5.4.240.0030.06019.19
5.4.230.0100.05719.07
5.4.220.0100.07019.23
5.4.210.0030.03719.07
5.4.200.0030.03718.84
5.4.190.0070.06019.29
5.4.180.0070.06719.10
5.4.170.0030.05019.31
5.4.160.0030.06018.98
5.4.150.0000.06018.92
5.4.140.0030.06316.36
5.4.130.0000.04716.38
5.4.120.0100.06316.32
5.4.110.0000.07316.45
5.4.100.0000.06716.19
5.4.90.0000.07716.19
5.4.80.0070.07016.34
5.4.70.0070.06016.56
5.4.60.0000.07016.16
5.4.50.0070.07316.23
5.4.40.0000.07316.55
5.4.30.0030.05316.37
5.4.20.0000.06016.51
5.4.10.0100.06316.42
5.4.00.0100.06715.78
5.3.290.0000.06014.75
5.3.280.0000.07714.68
5.3.270.0000.05314.58
5.3.260.0000.05714.50
5.3.250.0000.07314.63
5.3.240.0070.05314.69
5.3.230.0030.04014.59
5.3.220.0030.06014.58
5.3.210.0070.06314.58
5.3.200.0030.07314.48
5.3.190.0070.06314.55
5.3.180.0100.04314.46
5.3.170.0030.06714.61
5.3.160.0000.08014.49
5.3.150.0030.05714.55
5.3.140.0030.07314.64
5.3.130.0000.05714.54
5.3.120.0100.07314.58
5.3.110.0070.07314.66
5.3.100.0000.07014.20
5.3.90.0030.07714.02
5.3.80.0030.07714.14
5.3.70.0030.04714.14
5.3.60.0030.06313.92
5.3.50.0100.05713.86
5.3.40.0000.06713.87
5.3.30.0030.06713.83
5.3.20.0030.07013.82
5.3.10.0000.07713.67
5.3.00.0070.05713.58
5.2.170.0030.06012.06
5.2.160.0070.06012.06
5.2.150.0030.06312.06
5.2.140.0070.05712.06
5.2.130.0030.05712.06
5.2.120.0070.05012.06
5.2.110.0000.06012.06
5.2.100.0030.05012.06
5.2.90.0000.04312.06
5.2.80.0000.06312.06
5.2.70.0000.06012.06
5.2.60.0000.06012.06
5.2.50.0070.05012.06
5.2.40.0070.05312.06
5.2.30.0070.06012.06
5.2.20.0000.05312.06
5.2.10.0000.04712.06
5.2.00.0100.05712.06
5.1.60.0130.03012.06
5.1.50.0000.04312.06
5.1.40.0070.04712.06
5.1.30.0030.04312.06
5.1.20.0030.03312.06
5.1.10.0000.03712.06
5.1.00.0030.04712.06
5.0.50.0030.04012.06
5.0.40.0030.03312.06
5.0.30.0000.05312.06
5.0.20.0000.02712.06
5.0.10.0000.03312.06
5.0.00.0030.03312.06
4.4.90.0000.02712.06
4.4.80.0000.02012.06
4.4.70.0000.02312.06
4.4.60.0000.02012.06
4.4.50.0000.03312.06
4.4.40.0000.05312.06
4.4.30.0000.02312.06
4.4.20.0030.02312.06
4.4.10.0070.02712.06
4.4.00.0030.03312.06
4.3.110.0000.03012.06
4.3.100.0000.01712.06
4.3.90.0000.02312.06
4.3.80.0030.05012.06
4.3.70.0030.03012.06
4.3.60.0030.03012.06
4.3.50.0030.02712.06
4.3.40.0000.05312.06
4.3.30.0000.03712.06
4.3.20.0000.02012.06
4.3.10.0000.03012.06
4.3.00.0030.01712.06

preferences:
41.42 ms | 401 KiB | 5 Q