3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bar(int $foo): string { return $foo; } $result = bar(123); var_dump($result); // Output: string(3) "123"

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.4.10.0070.01018.88
8.3.140.0080.00017.08
8.3.130.0100.01018.56
8.3.120.0030.00618.82
8.3.110.0060.00320.94
8.3.100.0060.00316.14
8.3.90.0090.00326.77
8.3.80.0060.00616.75
8.3.70.0100.01016.75
8.3.60.0100.00718.56
8.3.50.0080.00918.07
8.3.40.0150.00018.85
8.3.30.0090.00618.47
8.3.20.0070.00021.60
8.3.10.0070.00023.65
8.3.00.0080.00017.68
8.2.260.0040.00416.70
8.2.250.0160.00418.41
8.2.240.0070.00316.70
8.2.230.0040.00422.58
8.2.220.0000.00824.06
8.2.210.0130.00626.77
8.2.200.0200.00316.25
8.2.190.0140.00716.58
8.2.180.0070.01118.54
8.2.170.0090.00622.96
8.2.160.0060.01022.17
8.2.150.0070.00024.18
8.2.140.0020.00524.66
8.2.130.0000.00821.00
8.2.120.0060.00326.35
8.2.110.0030.00622.00
8.2.100.0040.00717.91
8.2.90.0000.00817.63
8.2.80.0090.00018.96
8.2.70.0050.00317.63
8.2.60.0050.00317.93
8.2.50.0040.00418.22
8.2.40.0000.00720.44
8.2.30.0040.00419.32
8.2.20.0030.00717.86
8.2.10.0000.00717.84
8.2.00.0030.00517.96
8.1.310.0000.01818.31
8.1.300.0110.00418.53
8.1.290.0060.00330.84
8.1.280.0140.00025.92
8.1.270.0040.00423.87
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00322.48
8.1.230.0080.00318.96
8.1.220.0070.00317.79
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0000.00718.84
8.1.150.0070.00019.04
8.1.140.0080.00017.62
8.1.130.0050.00217.34
8.1.120.0040.00417.35
8.1.110.0000.00817.31
8.1.100.0070.00017.41
8.1.90.0040.00417.42
8.1.80.0030.00617.39
8.1.70.0030.00317.37
8.1.60.0060.00317.63
8.1.50.0030.00517.39
8.1.40.0040.00417.51
8.1.30.0050.00317.60
8.1.20.0060.00317.51
8.1.10.0040.00417.58
8.1.00.0080.00417.56
8.0.300.0070.00020.14
8.0.290.0000.00716.75
8.0.280.0080.00018.29
8.0.270.0020.00517.07
8.0.260.0030.00316.75
8.0.250.0070.00316.75
8.0.240.0000.00716.89
8.0.230.0060.00016.89
8.0.220.0040.00416.84
8.0.210.0030.00316.72
8.0.200.0030.00316.77
8.0.190.0040.00416.91
8.0.180.0000.00716.72
8.0.170.0080.00016.86
8.0.160.0040.00416.82
8.0.150.0040.00416.81
8.0.140.0070.00016.79
8.0.130.0030.00313.27
8.0.120.0020.00516.63
8.0.110.0050.00316.70
8.0.100.0020.00616.72
8.0.90.0040.00416.77
8.0.80.0060.00516.72
8.0.70.0040.00316.74
8.0.60.0030.00416.79
8.0.50.0030.00416.69
8.0.30.0090.00717.00
8.0.20.0080.00917.14
8.0.10.0090.00817.04
8.0.00.0070.01116.84
7.4.330.0050.00316.16
7.4.320.0000.00616.45
7.4.300.0000.00616.59
7.4.290.0000.00816.48
7.4.280.0070.00016.48
7.4.270.0030.00316.49
7.4.260.0000.00716.46
7.4.250.0050.00216.47
7.4.240.0070.00016.56
7.4.230.0050.00316.44
7.4.220.0040.00416.56
7.4.210.0070.00716.55
7.4.200.0040.00416.41
7.4.190.0000.00716.58
7.4.180.0000.00716.36
7.4.160.0050.00916.49
7.4.150.0050.00916.39
7.4.140.0100.00717.21
7.4.130.0090.00816.30
7.4.120.0080.00916.45
7.4.110.0090.01016.49
7.4.100.0050.01116.49
7.4.90.0080.00716.57
7.4.80.0100.00517.20
7.4.70.0080.00816.46
7.4.60.0070.00816.44
7.4.50.0060.00916.39
7.4.40.0070.00716.42
7.4.30.0110.00316.32
7.4.20.0060.01016.42
7.4.10.0070.00816.24
7.4.00.0060.00816.17
7.3.330.0030.00313.27
7.3.320.0000.00613.30
7.3.310.0000.00716.32
7.3.300.0020.00516.20
7.3.290.0040.00416.33
7.3.280.0080.00616.27
7.3.270.0090.00616.27
7.3.260.0090.00716.44
7.3.250.0050.00916.21
7.3.240.0070.00916.33
7.3.230.0090.00816.32
7.3.220.0090.00616.35
7.3.210.0090.00916.23
7.3.200.0080.00716.38
7.3.190.0080.00716.28
7.3.180.0090.00616.31
7.3.170.0070.00716.32
7.3.160.0070.00816.31
7.3.150.0070.00716.29
7.3.140.0060.01016.35
7.3.130.0080.00716.38
7.3.120.0060.00816.33
7.3.110.0100.00616.33
7.3.100.0080.00616.27
7.3.90.0080.00616.42
7.3.80.0080.00616.30
7.3.70.0110.00516.33
7.3.60.0070.00816.27
7.3.50.0110.00516.26
7.3.40.0050.01016.34
7.3.30.0080.00916.30
7.3.20.0100.00816.80
7.3.10.0110.00416.75
7.3.00.0090.00616.79
7.2.340.0170.00716.45
7.2.330.0160.00616.35
7.2.320.0160.00716.54
7.2.310.0170.00416.46
7.2.300.0130.00816.39
7.2.290.0100.00916.42
7.2.280.0120.00916.46
7.2.270.0110.00816.39
7.2.260.0130.00816.31
7.2.250.0140.00616.26
7.2.240.0110.01016.28
7.2.230.0130.00916.33
7.2.220.0150.00616.31
7.2.210.0120.00716.23
7.2.200.0110.00816.44
7.2.190.0130.00716.43
7.2.180.0110.00916.40
7.2.170.0130.00616.40
7.2.160.0110.00916.33
7.2.150.0150.00616.99
7.2.140.0130.00716.91
7.2.130.0120.00716.87
7.2.120.0130.00916.88
7.2.110.0090.01216.97
7.2.100.0120.00616.94
7.2.90.0120.00916.87
7.2.80.0120.00716.97
7.2.70.0130.00816.90
7.2.60.0090.00916.89
7.2.50.0130.00816.81
7.2.40.0240.01017.12
7.2.30.0200.01117.14
7.2.20.0250.01017.07
7.2.10.0260.00917.07
7.2.00.0270.00917.14
7.1.330.0140.00715.85
7.1.320.0160.00316.04
7.1.310.0100.01215.99
7.1.300.0080.01115.95
7.1.290.0150.00916.05
7.1.280.0100.01015.85
7.1.270.0140.00915.95
7.1.260.0180.00615.90
7.1.250.0180.00415.79
7.1.240.0150.00515.87
7.1.230.0130.00615.85
7.1.220.0100.00915.86
7.1.210.0170.00415.93
7.1.200.0120.00615.81
7.1.190.0110.00815.90
7.1.180.0140.00615.92
7.1.170.0130.01015.74
7.1.160.0260.01016.12
7.1.150.0240.00716.06
7.1.140.0210.00816.03
7.1.130.0280.00716.02
7.1.120.0250.00815.96
7.1.110.0250.00615.99
7.1.100.0210.01015.91
7.1.90.0200.00715.91
7.1.80.0380.00816.05
7.1.70.0100.01115.83
7.1.60.0280.00719.41
7.1.50.0230.00819.26
7.1.40.0110.01419.29
7.1.30.0240.01019.30
7.1.20.0230.01019.34
7.1.10.0220.00815.65
7.1.00.0190.00815.64
7.0.330.0140.00515.48
7.0.320.0130.00515.55
7.0.310.0140.00515.56
7.0.300.0140.00715.49
7.0.290.0120.00615.58
7.0.280.0100.00815.48
7.0.270.0110.00815.61
7.0.260.0110.00615.48
7.0.250.0110.00715.55
7.0.240.0110.00715.57
7.0.230.0180.00615.56
7.0.220.0130.00415.63
7.0.210.0100.01015.65
7.0.200.0110.00615.50
7.0.190.0130.00515.55
7.0.180.0140.00315.55
7.0.170.0150.01015.64
7.0.160.0080.01015.57
7.0.150.0100.00715.59
7.0.140.0120.00515.54
7.0.130.0090.00815.54
7.0.120.0070.01015.53
7.0.110.0100.00715.51
7.0.100.0110.00815.56
7.0.90.0110.00615.54
7.0.80.0090.00815.56
7.0.70.0090.00915.56
7.0.60.0110.01015.54
7.0.50.0090.00815.62
7.0.40.0120.00515.62
7.0.30.0230.00615.60
7.0.20.0120.00515.55
7.0.10.0120.00615.58
7.0.00.0110.00615.55
5.6.400.0090.00915.89
5.6.390.0140.00615.58
5.6.380.0080.01115.56
5.6.370.0120.00715.60
5.6.360.0120.00715.50
5.6.350.0110.00815.68
5.6.340.0110.00915.71
5.6.330.0130.00715.63
5.6.320.0130.00615.57
5.6.310.0090.00915.60
5.6.300.0120.00815.58
5.6.290.0090.01115.56
5.6.280.0120.00815.64
5.6.270.0070.01215.58
5.6.260.0110.00815.51
5.6.250.0140.00615.60
5.6.240.0110.00715.64
5.6.230.0140.00615.63
5.6.220.0090.00915.58
5.6.210.0070.01215.62
5.6.200.0100.01015.65
5.6.190.0120.00715.58
5.6.180.0110.00715.64
5.6.170.0150.00515.65
5.6.160.0120.00615.66
5.6.150.0120.00815.57
5.6.140.0080.01115.57
5.6.130.0110.00915.53
5.6.120.0100.01015.60
5.6.110.0120.00915.55
5.6.100.0130.00615.54
5.6.90.0080.01215.55
5.6.80.0100.00915.45
5.6.70.0110.01015.62
5.6.60.0100.00815.59
5.6.50.0100.01015.62
5.6.40.0080.01015.52
5.6.30.0130.00715.54
5.6.20.0120.00715.48
5.6.10.0090.00915.55
5.6.00.0100.00915.56

preferences:
27.97 ms | 403 KiB | 5 Q