3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cheese { public function foo($bar, $baz) { echo $baz; } } (new Cheese())->foo('bar');

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.40.0090.00618.67
8.3.30.0090.00618.74
8.3.20.0050.00220.31
8.3.10.0050.00321.59
8.3.00.0040.00419.56
8.2.170.0120.00322.96
8.2.160.0110.00320.23
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00017.50
8.2.110.0070.00422.05
8.2.100.0060.00617.75
8.2.90.0050.00319.18
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0060.00317.91
8.2.50.0060.00318.07
8.2.40.0040.00421.09
8.2.30.0000.00717.86
8.2.20.0030.00517.78
8.2.10.0050.00217.86
8.2.00.0060.00318.04
8.1.270.0080.00020.16
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.52
8.1.230.0040.00817.42
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0000.00818.54
8.1.160.0040.00421.93
8.1.150.0040.00418.83
8.1.140.0050.00317.27
8.1.130.0000.00717.61
8.1.120.0000.00717.29
8.1.110.0000.00717.34
8.1.100.0070.00017.33
8.1.90.0070.00017.23
8.1.80.0070.00017.30
8.1.70.0030.00317.38
8.1.60.0070.00017.55
8.1.50.0000.00717.45
8.1.40.0040.00417.39
8.1.30.0080.00017.43
8.1.20.0040.00417.47
8.1.10.0040.00417.50
8.1.00.0040.00417.49
8.0.300.0050.00218.77
8.0.290.0060.00316.63
8.0.280.0070.00018.38
8.0.270.0000.00717.12
8.0.260.0030.00317.19
8.0.250.0000.00716.96
8.0.240.0030.00716.92
8.0.230.0030.00616.98
8.0.220.0030.00316.86
8.0.210.0070.00316.87
8.0.200.0060.00016.95
8.0.190.0040.00416.90
8.0.180.0040.00416.93
8.0.170.0040.00416.85
8.0.160.0000.00816.89
8.0.150.0060.00316.91
8.0.140.0050.00216.80
8.0.130.0070.00013.31
8.0.120.0030.00516.84
8.0.110.0030.00616.88
8.0.100.0040.00416.75
8.0.90.0040.00416.93
8.0.80.0120.00316.81
8.0.70.0000.00716.73
8.0.60.0000.00716.77
8.0.50.0070.00016.74
8.0.30.0100.00816.98
8.0.20.0070.01117.40
8.0.10.0040.00416.94
8.0.00.0140.00616.74
7.4.330.0000.00615.08
7.4.320.0000.00716.37
7.4.300.0030.00316.44
7.4.290.0040.00416.54
7.4.280.0000.00816.41
7.4.270.0050.00216.48
7.4.260.0070.00016.50
7.4.250.0000.00716.51
7.4.240.0030.00316.39
7.4.230.0070.00016.18
7.4.220.0070.01016.43
7.4.210.0050.01116.41
7.4.200.0040.00416.41
7.4.160.0090.00616.63
7.4.150.0110.00617.40
7.4.140.0070.01517.86
7.4.130.0080.01216.44
7.4.120.0070.01516.51
7.4.110.0090.00916.46
7.4.100.0120.00616.29
7.4.90.0170.00016.72
7.4.80.0100.00719.39
7.4.70.0130.00516.24
7.4.60.0110.01116.40
7.4.50.0030.00616.16
7.4.40.0070.01016.57
7.4.30.0080.01216.69
7.4.00.0130.00014.79
7.3.330.0000.00713.33
7.3.320.0030.00313.22
7.3.310.0000.00716.22
7.3.300.0070.00016.34
7.3.290.0060.00016.35
7.3.280.0080.01116.30
7.3.270.0120.00617.40
7.3.260.0160.00716.42
7.3.250.0100.00716.52
7.3.240.0080.01016.60
7.3.230.0040.01316.50
7.3.210.0100.01016.49
7.3.200.0130.00616.29
7.3.190.0160.00016.57
7.3.180.0060.01016.32
7.3.170.0090.00616.32
7.3.160.0150.00316.40
7.3.10.0000.01316.49
7.3.00.0000.01016.73
7.2.330.0180.00016.50
7.2.320.0030.01416.63
7.2.310.0060.01016.68
7.2.300.0130.00716.61
7.2.290.0060.01216.22
7.2.130.0000.01316.95
7.2.120.0040.00716.85
7.2.110.0070.00716.73
7.2.100.0070.00416.56
7.2.90.0060.00916.70
7.2.80.0030.01116.57
7.2.70.0050.00516.67
7.2.60.0030.01216.79
7.2.50.0030.01316.56
7.2.40.0000.01116.73
7.2.30.0040.00816.80
7.2.20.0000.01516.79
7.2.10.0070.00416.88
7.2.00.0050.00818.10
7.1.250.0030.00615.43
7.1.200.0040.00715.45
7.1.100.0030.00917.77
7.1.70.0000.00716.68
7.1.60.0060.01920.03
7.1.50.0070.00416.53
7.1.00.0000.08022.48
7.0.200.0070.00716.56
7.0.60.0070.04019.93
7.0.50.0070.03717.90
7.0.40.0070.04020.27
7.0.30.0200.08020.21
7.0.20.0170.04720.33
7.0.10.0170.09020.33
7.0.00.0070.07320.29
5.6.280.0070.06321.15
5.6.210.0170.06320.61
5.6.200.0070.06318.18
5.6.190.0200.06720.57
5.6.180.0070.03720.49
5.6.170.0370.07320.44
5.6.160.0070.04020.57
5.6.150.0000.04018.18
5.6.140.0030.08718.27
5.6.130.0100.07718.18
5.6.120.0070.09021.13
5.6.110.0100.04321.01
5.6.100.0100.08020.96
5.6.90.0070.07020.98
5.6.80.0100.07720.41
5.6.70.0330.07020.52
5.5.350.0070.07320.34
5.5.340.0100.07317.99
5.5.330.0000.06720.47
5.5.320.0370.07320.25
5.5.310.0200.08320.19
5.5.300.0070.03318.05
5.5.290.0100.07717.95
5.5.280.0030.08720.80
5.5.270.0070.06720.84
5.5.260.0130.06020.96
5.5.250.0170.07020.68
5.5.240.0170.07020.20
5.4.450.0930.06719.34
5.4.440.0830.05319.44
5.4.430.0800.05719.56
5.4.420.0600.06019.69
5.4.410.0870.06719.21
5.4.400.0670.07019.27
5.4.390.0530.06719.20
5.4.380.0600.06019.29
5.4.370.0870.05718.88
5.4.360.0830.06319.36
5.4.350.0600.06319.01
5.4.340.0770.05719.16
5.4.320.0770.07018.99
5.4.310.0670.05318.84
5.4.300.0600.06019.24
5.4.290.0670.06318.84
5.4.280.0600.06319.13
5.4.270.0670.06319.21
5.4.260.0870.07319.30
5.4.250.0670.05319.22
5.4.240.0700.05318.98
5.4.230.0700.05019.27
5.4.220.0770.06719.00
5.4.210.0830.04719.38
5.4.200.0730.05016.83
5.4.190.0300.05319.00
5.4.180.0230.06319.02
5.4.170.0800.06719.02
5.4.160.0870.05719.11
5.4.150.0700.05719.08
5.4.140.0870.05716.44
5.4.130.0800.05016.72
5.4.120.0670.07716.32
5.4.110.0770.07316.40
5.4.100.0930.05716.54
5.4.90.0670.06016.33
5.4.80.0800.07316.71
5.4.70.1130.06016.28
5.4.60.0570.05016.37
5.4.50.0630.04016.69
5.4.40.0670.04716.52
5.4.30.0700.05016.53
5.4.20.0600.04716.29
5.4.10.0630.06716.30
5.4.00.0730.05015.89

preferences:
42.95 ms | 400 KiB | 5 Q