3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar(string $baz) { } } (new 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.60.0120.00918.43
8.3.50.0140.00921.11
8.3.40.0110.00718.89
8.3.30.0110.00419.05
8.3.20.0050.00320.33
8.3.10.0000.00821.74
8.3.00.0030.00623.69
8.2.180.0180.00316.63
8.2.170.0110.00422.96
8.2.160.0030.01022.03
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00017.50
8.2.110.0040.00719.06
8.2.100.0060.00617.72
8.2.90.0030.00517.91
8.2.80.0070.00018.88
8.2.70.0050.00317.93
8.2.60.0060.00617.90
8.2.50.0000.00918.10
8.2.40.0070.00020.42
8.2.30.0040.00419.78
8.2.20.0040.00417.61
8.2.10.0050.00217.92
8.2.00.0030.00517.94
8.1.280.0100.00725.92
8.1.270.0080.00020.02
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00321.95
8.1.230.0040.00720.84
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.10
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0030.00618.55
8.1.160.0000.00722.09
8.1.150.0030.00618.72
8.1.140.0040.00417.25
8.1.130.0040.00417.56
8.1.120.0000.00717.29
8.1.110.0040.00417.34
8.1.100.0000.00717.30
8.1.90.0040.00417.22
8.1.80.0030.00717.30
8.1.70.0030.00317.29
8.1.60.0040.00417.50
8.1.50.0030.00617.42
8.1.40.0040.00417.37
8.1.30.0050.00317.47
8.1.20.0040.00417.56
8.1.10.0000.00717.47
8.1.00.0030.00517.42
8.0.300.0060.00319.81
8.0.290.0030.00516.75
8.0.280.0040.00418.28
8.0.270.0030.00517.18
8.0.260.0040.00417.10
8.0.250.0040.00416.93
8.0.240.0030.00716.81
8.0.230.0040.00416.87
8.0.220.0070.00016.87
8.0.210.0060.00316.84
8.0.200.0040.00417.00
8.0.190.0080.00016.91
8.0.180.0040.00416.80
8.0.170.0000.00816.91
8.0.160.0040.00416.80
8.0.150.0030.00316.82
8.0.140.0040.00416.84
8.0.130.0000.00513.29
8.0.120.0030.00616.81
8.0.110.0040.00416.78
8.0.100.0000.00716.77
8.0.90.0040.00416.78
8.0.80.0000.01516.93
8.0.70.0000.00816.86
8.0.60.0040.00416.73
8.0.50.0070.00016.87
8.0.30.0120.00617.05
8.0.20.0110.01017.40
8.0.10.0040.00416.76
8.0.00.0050.01416.71
7.4.330.0000.00515.08
7.4.320.0060.00016.38
7.4.300.0030.00316.44
7.4.290.0000.00716.41
7.4.280.0040.00416.35
7.4.270.0030.00316.39
7.4.260.0030.00316.48
7.4.250.0000.00716.41
7.4.240.0020.00616.56
7.4.230.0040.00416.23
7.4.220.0070.01116.38
7.4.210.0100.00416.51
7.4.200.0030.00316.34
7.4.160.0120.00316.27
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0090.00816.39
7.4.120.0070.01116.41
7.4.110.0110.00716.66
7.4.100.0140.00416.34
7.4.90.0030.01416.39
7.4.80.0110.01119.39
7.4.70.0140.00316.40
7.4.60.0000.01816.42
7.4.50.0040.00416.31
7.4.40.0090.00816.50
7.4.30.0130.01016.52
7.4.00.0100.00714.80
7.3.330.0020.00213.43
7.3.320.0030.00313.13
7.3.310.0070.00016.36
7.3.300.0070.00016.25
7.3.290.0000.00816.33
7.3.280.0090.00816.36
7.3.270.0100.00617.40
7.3.260.0060.01316.20
7.3.250.0110.00716.46
7.3.240.0090.00916.50
7.3.230.0030.01316.39
7.3.210.0080.00816.48
7.3.200.0100.00716.38
7.3.190.0040.01216.40
7.3.180.0130.00916.26
7.3.170.0000.01616.64
7.3.160.0080.01116.21
7.3.120.0030.01414.59
7.3.110.0070.01014.74
7.3.100.0040.01214.83
7.3.90.0030.00614.92
7.3.80.0090.00914.91
7.3.70.0060.01014.48
7.3.60.0030.01014.86
7.3.50.0050.00314.69
7.3.40.0000.01314.85
7.3.30.0070.01114.80
7.3.20.0090.00916.62
7.3.10.0030.01016.65
7.3.00.0030.01016.20
7.2.330.0090.01516.31
7.2.320.0080.00816.73
7.2.310.0080.00816.36
7.2.300.0140.01016.45
7.2.290.0060.01216.57
7.2.250.0060.01015.17
7.2.240.0060.01315.05
7.2.230.0090.00414.84
7.2.220.0030.01315.13
7.2.210.0030.01014.89
7.2.200.0030.01215.00
7.2.190.0090.00315.05
7.2.180.0100.00714.88
7.2.170.0030.01014.59
7.2.60.0040.01116.54
7.2.00.0060.00619.41
7.1.330.0070.00715.58
7.1.320.0090.00615.56
7.1.310.0060.00915.73
7.1.300.0030.00715.49
7.1.290.0090.00615.72
7.1.280.0160.00015.66
7.1.270.0030.01515.50
7.1.260.0040.01115.40
7.1.200.0030.00715.76
7.1.100.0030.00717.52
7.1.70.0040.00417.00
7.1.60.0130.01019.42
7.1.50.0030.02116.57
7.1.00.0070.07322.45
7.0.200.0130.00316.67
7.0.60.0000.09019.96
7.0.50.0070.06017.91
7.0.40.0030.06320.10
7.0.30.0270.06320.06
7.0.20.0270.04320.09
7.0.10.0100.08320.23
7.0.00.0100.08720.25
5.6.280.0000.06321.11
5.6.210.0070.05320.64
5.6.200.0070.05018.18
5.6.190.0030.06020.47
5.6.180.0330.03320.39
5.6.170.0300.06020.58
5.6.160.0130.06320.54
5.6.150.0070.04318.14
5.6.140.0000.04318.30
5.6.130.0070.08718.27
5.6.120.0070.08321.05
5.6.110.0200.05720.99
5.6.100.0100.05321.11
5.6.90.0000.09321.04
5.6.80.0030.08320.38
5.5.350.0200.08020.35
5.5.340.0030.07017.98
5.5.330.0100.08720.19
5.5.320.0400.07320.35
5.5.310.0170.04020.50
5.5.300.0070.03718.02
5.5.290.0100.07717.92
5.5.280.0130.05320.80
5.5.270.0100.08320.83
5.5.260.0030.05020.73
5.5.250.0030.04320.59
5.5.240.0070.07320.23
5.4.450.0370.06019.18
5.4.440.0230.08019.41
5.4.430.0370.05319.55
5.4.420.0130.04719.52
5.4.410.0330.07019.21
5.4.400.0300.07319.02
5.4.390.0300.04019.24
5.4.380.0300.06319.21
5.4.370.0230.07318.95
5.4.360.0330.06319.06
5.4.350.0200.04319.22
5.4.340.0300.07319.04
5.4.320.0330.07018.88
5.4.310.0200.07018.87
5.4.300.0270.04719.16
5.4.290.0230.06318.97
5.4.280.0200.05318.87
5.4.270.0270.06019.16
5.4.260.0300.06319.31
5.4.250.0230.05719.11
5.4.240.0270.06719.23
5.4.230.0230.04319.05
5.4.220.0300.05019.14
5.4.210.0200.05719.23
5.4.200.0300.07018.94
5.4.190.0270.04319.30
5.4.180.0200.07719.14
5.4.170.0230.05019.19
5.4.160.0200.08318.97
5.4.150.0370.05019.11
5.4.140.0230.03716.36
5.4.130.0300.06316.41
5.4.120.0200.05716.32
5.4.110.0300.06316.55
5.4.100.0400.05716.45
5.4.90.0300.05716.55
5.4.80.0170.04316.62
5.4.70.0230.04316.43
5.4.60.0370.05716.54
5.4.50.0270.05316.49
5.4.40.0370.06016.48
5.4.30.0270.06716.34
5.4.20.0300.06316.55
5.4.10.0170.05716.52
5.4.00.0270.03715.82
5.3.290.0270.07714.66
5.3.280.0170.07014.57
5.3.270.0230.07314.58
5.3.260.0270.06014.61
5.3.250.0330.06014.52
5.3.240.0200.07314.60
5.3.230.0230.06014.56
5.3.220.0200.04314.57
5.3.210.0300.04714.55
5.3.200.0330.03714.61
5.3.190.0200.06014.57
5.3.180.0270.06314.54
5.3.170.0270.04314.49
5.3.160.0300.04714.47
5.3.150.0470.05014.48
5.3.140.0370.05314.67
5.3.130.0230.04714.70
5.3.120.0170.04314.59
5.3.110.0330.06314.47
5.3.100.0330.07013.94
5.3.90.0330.04014.18
5.3.80.0330.03313.91
5.3.70.0330.04314.18
5.3.60.0470.05713.95
5.3.50.0300.05313.88
5.3.40.0400.05714.02
5.3.30.0230.04713.82
5.3.20.0300.06013.61
5.3.10.0230.06713.57
5.3.00.0170.07013.71
5.2.170.0200.04312.02
5.2.160.0200.06012.02
5.2.150.0200.06312.02
5.2.140.0270.03712.02
5.2.130.0170.03312.02
5.2.120.0230.04712.02
5.2.110.0230.05312.02
5.2.100.0170.06312.02
5.2.90.0200.06312.02
5.2.80.0270.04712.02
5.2.70.0300.05312.02
5.2.60.0270.03712.02
5.2.50.0270.05712.02
5.2.40.0130.05712.02
5.2.30.0170.04712.02
5.2.20.0170.04712.02
5.2.10.0230.04012.02
5.2.00.0130.03312.02
5.1.60.0130.05712.02
5.1.50.0200.04312.02
5.1.40.0230.04312.02
5.1.30.0170.04012.02
5.1.20.0170.05712.02
5.1.10.0170.04312.02
5.1.00.0200.03712.02
5.0.50.0170.04012.02
5.0.40.0130.02712.02
5.0.30.0130.04312.02
5.0.20.0030.04012.02
5.0.10.0170.04012.02
5.0.00.0100.06712.02
4.4.90.0130.01712.02
4.4.80.0000.02012.02
4.4.70.0070.02012.02
4.4.60.0100.02012.02
4.4.50.0100.02712.02
4.4.40.0100.05012.02
4.4.30.0170.02312.02
4.4.20.0070.03312.02
4.4.10.0130.03012.02
4.4.00.0070.05012.02
4.3.110.0130.02712.02
4.3.100.0070.02312.02
4.3.90.0100.03012.02
4.3.80.0130.02312.02
4.3.70.0030.02012.02
4.3.60.0100.01712.02
4.3.50.0130.02312.02
4.3.40.0100.03312.02
4.3.30.0000.03012.02
4.3.20.0030.02312.02
4.3.10.0100.03312.02
4.3.00.0030.02012.02

preferences:
56.01 ms | 401 KiB | 5 Q