3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { } class Foo { public function getBar(int $teste) { var_dump($teste); } } $foo = new Foo(); var_dump($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.0090.00616.50
8.3.50.0070.01116.34
8.3.40.0070.00718.83
8.3.30.0120.00318.75
8.3.20.0050.00220.20
8.3.10.0080.00023.66
8.3.00.0100.00017.68
8.2.180.0150.00016.63
8.2.170.0040.01122.96
8.2.160.0070.01420.57
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0080.00017.63
8.2.110.0040.00721.11
8.2.100.0090.00317.78
8.2.90.0040.00419.06
8.2.80.0030.00517.97
8.2.70.0000.00817.46
8.2.60.0040.00417.92
8.2.50.0030.00518.07
8.2.40.0000.00819.46
8.2.30.0040.00418.05
8.2.20.0000.00817.59
8.2.10.0040.00417.97
8.2.00.0050.00217.99
8.1.280.0100.00725.92
8.1.270.0110.00720.38
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00822.05
8.1.230.0080.00419.00
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0030.00518.51
8.1.160.0040.00422.00
8.1.150.0040.00418.87
8.1.140.0040.00417.38
8.1.130.0000.00717.51
8.1.120.0000.00717.30
8.1.110.0040.00417.27
8.1.100.0070.00017.29
8.1.90.0000.00717.32
8.1.80.0030.00617.36
8.1.70.0000.00717.22
8.1.60.0040.00417.49
8.1.50.0000.00817.45
8.1.40.0080.00017.42
8.1.30.0030.00617.60
8.1.20.0040.00417.70
8.1.10.0040.00817.62
8.1.00.0030.00617.49
8.0.300.0060.00320.27
8.0.290.0040.00416.63
8.0.280.0070.00018.25
8.0.270.0000.00817.25
8.0.260.0000.00717.15
8.0.250.0000.00716.86
8.0.240.0000.00716.95
8.0.230.0000.00916.95
8.0.220.0070.00016.88
8.0.210.0000.00816.90
8.0.200.0070.00016.85
8.0.190.0000.00716.95
8.0.180.0000.01116.97
8.0.170.0050.00316.91
8.0.160.0030.00516.85
8.0.150.0070.00016.87
8.0.140.0000.00716.71
8.0.130.0000.00613.36
8.0.120.0000.00816.79
8.0.110.0070.00016.76
8.0.100.0050.00317.00
8.0.90.0070.00016.69
8.0.80.0070.01016.89
8.0.70.0000.00816.76
8.0.60.0040.00416.86
8.0.50.0040.00416.73
8.0.30.0120.00717.11
8.0.20.0110.01317.40
8.0.10.0040.00416.88
8.0.00.0100.00916.57
7.4.330.0000.00515.08
7.4.320.0000.00616.44
7.4.300.0030.00316.59
7.4.290.0000.00716.57
7.4.280.0040.00416.48
7.4.270.0030.00316.43
7.4.260.0050.00516.49
7.4.250.0040.00416.46
7.4.240.0020.00516.55
7.4.230.0030.00316.63
7.4.220.0110.00716.53
7.4.210.0100.00716.56
7.4.200.0000.00716.44
7.4.160.0060.00916.53
7.4.150.0130.01017.40
7.4.140.0060.01117.86
7.4.130.0120.01216.56
7.4.120.0060.01116.53
7.4.110.0070.01416.58
7.4.100.0120.00616.67
7.4.90.0140.00316.60
7.4.80.0100.00719.39
7.4.70.0090.00916.52
7.4.60.0180.00016.60
7.4.50.0000.00816.46
7.4.40.0080.00816.34
7.4.30.0000.01716.66
7.4.00.0060.00914.75
7.3.330.0000.00513.32
7.3.320.0060.00013.43
7.3.310.0000.00716.35
7.3.300.0000.00716.23
7.3.290.0030.00316.28
7.3.280.0120.00716.34
7.3.270.0120.00817.40
7.3.260.0090.00916.62
7.3.250.0100.00716.29
7.3.240.0150.00616.69
7.3.230.0070.01216.59
7.3.210.0090.00916.46
7.3.200.0130.00716.30
7.3.190.0080.00816.27
7.3.180.0030.01216.28
7.3.170.0080.01416.34
7.3.160.0180.00016.29
7.3.10.0040.01216.15
7.3.00.0070.01016.19
7.2.330.0130.00616.73
7.2.320.0140.00916.55
7.2.310.0040.01216.65
7.2.300.0080.00816.55
7.2.290.0060.01216.55
7.2.130.0070.00716.67
7.2.120.0090.00916.76
7.2.110.0030.00616.29
7.2.100.0100.00316.86
7.2.90.0090.00616.43
7.2.80.0080.00416.65
7.2.70.0070.00316.79
7.2.60.0030.01116.83
7.2.50.0180.00616.70
7.2.40.0170.00916.73
7.2.30.0070.01016.70
7.2.20.0150.00316.80
7.2.10.0140.00716.75
7.2.00.0090.00817.89
7.1.250.0030.01015.50
7.1.200.0030.00715.76
7.1.100.0030.01317.82
7.1.70.0000.00717.15
7.1.60.0100.01319.13
7.1.50.0030.02016.54
7.1.00.0070.09322.45
7.0.200.0040.00716.39
7.0.60.0070.04019.79
7.0.50.0030.05717.80
7.0.40.0100.07320.24
7.0.30.0330.04720.16
7.0.20.0170.04720.17
7.0.10.0070.08720.25
7.0.00.0130.07320.23
5.6.280.0070.06721.10
5.6.210.0030.04020.46
5.6.200.0100.05318.29
5.6.190.0100.07720.55
5.6.180.0270.08020.77
5.6.170.0300.07720.46
5.6.160.0030.04720.46
5.6.150.0100.03718.19
5.6.140.0000.04318.17
5.6.130.0000.05018.15
5.6.120.0130.06320.97
5.6.110.0070.08720.89
5.6.100.0200.06320.99
5.6.90.0070.08721.03
5.6.80.0070.08320.42
5.5.350.0070.08020.39
5.5.340.0170.06318.07
5.5.330.0070.08020.45
5.5.320.1670.06720.42
5.5.310.0170.04320.32
5.5.300.0070.04018.07
5.5.290.0130.07018.08
5.5.280.0130.06720.77
5.5.270.0070.07720.63
5.5.260.0100.08020.80
5.5.250.0100.05320.71
5.5.240.0000.03320.11
5.4.450.0570.06019.47
5.4.440.0570.05719.54
5.4.430.0870.04319.57
5.4.420.0800.04719.57
5.4.410.0770.05019.34
5.4.400.0730.06718.88
5.4.390.0730.06719.02
5.4.380.0830.04318.87
5.4.370.0700.06719.26
5.4.360.0700.05718.98
5.4.350.0800.04319.14
5.4.340.0700.06319.02
5.4.320.0830.04719.25
5.4.310.0830.05019.36
5.4.300.0800.05319.27
5.4.290.0770.04719.14
5.4.280.0770.05718.97
5.4.270.0800.04318.87
5.4.260.0670.05719.25
5.4.250.0830.04018.83
5.4.240.0830.04719.21
5.4.230.0800.05019.27
5.4.220.0030.05719.14
5.4.210.0070.05319.26
5.4.200.0100.05018.83
5.4.190.0630.07319.25
5.4.180.0700.05719.26
5.4.170.0700.04719.07
5.4.160.0830.04319.09
5.4.150.0830.04319.12
5.4.140.0700.05316.44
5.4.130.0800.04316.35
5.4.120.0670.06016.56
5.4.110.0800.04316.35
5.4.100.0800.04716.67
5.4.90.0700.05016.57
5.4.80.0730.05016.65
5.4.70.0400.06316.59
5.4.60.0230.05316.54
5.4.50.0030.07016.39
5.4.40.0130.03316.43
5.4.30.0100.06316.25
5.4.20.0230.05016.43
5.4.10.0330.04016.54

preferences:
66.6 ms | 400 KiB | 5 Q