3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { } class Foo { public function getBar(string $teste) { var_dump($teste); } } $foo = new Foo(); var_dump($foo->getBar(50));

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.00316.61
8.3.50.0070.00921.14
8.3.40.0130.00318.67
8.3.30.0070.00718.46
8.3.20.0050.00320.30
8.3.10.0000.00723.52
8.3.00.0100.00317.92
8.2.180.0040.01116.38
8.2.170.0110.00422.96
8.2.160.0150.00620.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0090.00017.50
8.2.110.0060.00320.35
8.2.100.0070.00717.66
8.2.90.0050.00319.17
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0040.00419.39
8.2.30.0000.00717.96
8.2.20.0040.00417.66
8.2.10.0030.00617.97
8.2.00.0000.00718.11
8.1.280.0070.01325.92
8.1.270.0040.00420.23
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00423.74
8.1.230.0040.00723.91
8.1.220.0040.00417.74
8.1.210.0030.00718.77
8.1.200.0030.00617.22
8.1.190.0000.00817.22
8.1.180.0070.00018.10
8.1.170.0050.00318.59
8.1.160.0000.00821.88
8.1.150.0040.00418.82
8.1.140.0080.00017.33
8.1.130.0030.00317.63
8.1.120.0040.00417.46
8.1.110.0030.00317.23
8.1.100.0020.00517.23
8.1.90.0000.00717.40
8.1.80.0080.00017.37
8.1.70.0030.00317.39
8.1.60.0050.00317.47
8.1.50.0050.00317.42
8.1.40.0000.00817.54
8.1.30.0060.00317.48
8.1.20.0060.00317.64
8.1.10.0040.00417.48
8.1.00.0060.00317.52
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.37
8.0.270.0040.00417.11
8.0.260.0060.00017.05
8.0.250.0040.00416.88
8.0.240.0030.00316.89
8.0.230.0060.00316.94
8.0.220.0000.00716.89
8.0.210.0040.00416.80
8.0.200.0030.00316.95
8.0.190.0040.00416.83
8.0.180.0000.00716.89
8.0.170.0000.00816.96
8.0.160.0040.00416.75
8.0.150.0030.00316.89
8.0.140.0080.00016.74
8.0.130.0000.00513.24
8.0.120.0040.00416.81
8.0.110.0050.00216.72
8.0.100.0000.00716.88
8.0.90.0030.00516.82
8.0.80.0040.01116.82
8.0.70.0000.00716.68
8.0.60.0040.00416.77
8.0.50.0040.00416.88
8.0.30.0060.01116.99
8.0.20.0120.01017.40
8.0.10.0050.00317.07
8.0.00.0110.01016.70
7.4.330.0020.00215.08
7.4.320.0000.00616.50
7.4.300.0030.00316.63
7.4.290.0000.00616.61
7.4.280.0030.00516.61
7.4.270.0000.00716.51
7.4.260.0000.01016.48
7.4.250.0000.00716.47
7.4.240.0050.00216.53
7.4.230.0030.00316.39
7.4.220.0090.00916.48
7.4.210.0070.00716.55
7.4.200.0030.00316.25
7.4.160.0090.00616.59
7.4.150.0000.01817.40
7.4.140.0080.01617.86
7.4.130.0080.01116.48
7.4.120.0130.00416.38
7.4.110.0100.01016.29
7.4.100.0180.00316.57
7.4.90.0060.01116.49
7.4.80.0160.00019.39
7.4.70.0100.00716.53
7.4.60.0060.00916.49
7.4.50.0000.00816.48
7.4.40.0130.00416.27
7.4.30.0140.00716.45
7.4.00.0040.01114.66
7.3.330.0000.00613.22
7.3.320.0020.00213.24
7.3.310.0030.00316.13
7.3.300.0070.00016.14
7.3.290.0090.00916.24
7.3.280.0070.01116.19
7.3.270.0130.00617.40
7.3.260.0090.00916.52
7.3.250.0070.01416.32
7.3.240.0080.00816.30
7.3.230.0110.01016.53
7.3.210.0110.01016.16
7.3.200.0090.00616.37
7.3.190.0110.00516.17
7.3.180.0130.00316.46
7.3.170.0140.00316.27
7.3.160.0130.00916.20
7.2.330.0100.00716.30
7.2.320.0100.01316.73
7.2.310.0190.00316.72
7.2.300.0150.00016.39
7.2.290.0110.00616.62
7.2.60.0080.00616.86
7.2.00.0060.00619.48
7.1.200.0060.00615.82
7.1.100.0000.01118.25
7.1.70.0000.00716.95
7.1.60.0130.01019.13
7.1.50.0030.01517.05
7.1.00.0000.08022.48
7.0.200.0030.00316.40
7.0.60.0100.07020.04
7.0.50.0070.05317.86
7.0.40.0170.08020.09
7.0.30.0300.08020.15
7.0.20.0130.04320.10
7.0.10.0030.06020.39
7.0.00.0030.04720.19
5.6.280.0000.06721.13
5.6.210.0030.07320.61
5.6.200.0070.05718.27
5.6.190.0100.08320.48
5.6.180.0470.06320.64
5.6.170.0430.07320.40
5.6.160.0100.07720.52
5.6.150.0100.04318.25
5.6.140.0030.04318.24
5.6.130.0000.07318.15
5.6.120.0030.04321.00
5.6.110.0130.07321.11
5.6.100.0030.06720.96
5.6.90.0070.06021.10
5.6.80.0100.07320.35
5.5.350.0370.08020.32
5.5.340.0130.07717.95
5.5.330.0030.04020.42
5.5.320.0470.07320.27
5.5.310.0270.06020.27
5.5.300.0100.03318.04
5.5.290.0070.08717.97
5.5.280.0100.08020.73
5.5.270.0100.07020.67
5.5.260.0070.04320.84
5.5.250.0130.06020.48
5.5.240.0070.08720.15
5.4.450.0270.05019.46
5.4.440.0200.06319.17
5.4.430.0230.05319.34
5.4.420.0200.05719.59
5.4.410.0270.05019.04
5.4.400.0230.05019.01
5.4.390.0300.06719.06
5.4.380.0270.04719.14
5.4.370.0330.06319.25
5.4.360.0170.05718.84
5.4.350.0270.05319.28
5.4.340.0200.05719.31
5.4.320.0400.06019.25
5.4.310.0270.04719.06
5.4.300.0200.07019.12
5.4.290.0270.04718.87
5.4.280.0130.06019.15
5.4.270.0200.05719.25
5.4.260.0200.05719.12
5.4.250.0130.05719.00
5.4.240.0330.06719.27
5.4.230.0270.06019.30
5.4.220.0230.07318.83
5.4.210.0230.05318.97
5.4.200.0130.06019.21
5.4.190.0230.05018.83
5.4.180.0200.05319.24
5.4.170.0200.05019.25
5.4.160.0300.04019.34
5.4.150.0230.05019.28
5.4.140.0230.05016.56
5.4.130.0170.05716.55
5.4.120.0270.04716.59
5.4.110.0330.05716.30
5.4.100.0200.05716.66
5.4.90.0130.06716.70
5.4.80.0170.05016.52
5.4.70.0270.06716.23
5.4.60.0270.05316.48
5.4.50.0000.06716.48
5.4.40.0230.03716.25
5.4.30.0200.04016.48
5.4.20.0270.05716.42
5.4.10.0230.03016.38

preferences:
50.4 ms | 401 KiB | 5 Q