3v4l.org

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

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.20.0120.00319.33
8.4.10.0000.00918.84
8.3.150.0070.00019.09
8.3.140.0060.00318.59
8.3.130.0000.00816.45
8.3.120.0030.01319.04
8.3.110.0110.00020.94
8.3.100.0050.00524.06
8.3.90.0040.00426.77
8.3.80.0100.00016.50
8.3.70.0140.00316.58
8.3.60.0140.00718.20
8.3.50.0110.00818.22
8.3.40.0090.00618.67
8.3.30.0150.00018.54
8.3.20.0040.00421.68
8.3.10.0040.00423.48
8.3.00.0050.00317.79
8.2.260.0110.00418.17
8.2.250.0120.00316.89
8.2.240.0080.00019.21
8.2.230.0090.00022.58
8.2.220.0050.00537.54
8.2.210.0070.00026.77
8.2.200.0030.00516.50
8.2.190.0060.00916.58
8.2.180.0060.01318.41
8.2.170.0120.00322.96
8.2.160.0100.01020.25
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0110.00421.18
8.2.110.0030.00622.27
8.2.100.0090.00317.66
8.2.90.0000.00720.65
8.2.80.0040.00419.19
8.2.70.0080.00017.93
8.2.60.0030.00617.93
8.2.50.0040.00417.50
8.2.40.0000.00819.77
8.2.30.0040.00418.09
8.2.20.0040.00417.86
8.2.10.0040.00417.90
8.2.00.0050.00318.02
8.1.310.0100.00720.22
8.1.300.0120.00417.79
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0000.00723.99
8.1.260.0030.01026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.91
8.1.230.0070.00420.97
8.1.220.0050.00317.74
8.1.210.0000.00818.96
8.1.200.0080.00017.23
8.1.190.0040.00417.00
8.1.180.0030.00518.10
8.1.170.0050.00317.62
8.1.160.0040.00418.87
8.1.150.0000.00718.96
8.1.140.0040.00417.63
8.1.130.0000.00817.33
8.1.120.0000.00717.28
8.1.110.0040.00417.41
8.1.100.0000.00717.41
8.1.90.0040.00417.35
8.1.80.0030.00617.40
8.1.70.0040.00417.21
8.1.60.0050.00317.62
8.1.50.0040.00417.37
8.1.40.0050.00217.54
8.1.30.0000.00917.66
8.1.20.0050.00317.66
8.1.10.0070.00017.40
8.1.00.0040.00717.45
8.0.300.0000.00719.73
8.0.290.0050.00216.63
8.0.280.0030.00318.39
8.0.270.0030.00317.18
8.0.260.0080.00016.68
8.0.250.0030.00316.88
8.0.240.0070.00016.78
8.0.230.0060.00316.90
8.0.220.0070.00016.69
8.0.210.0030.00316.70
8.0.200.0030.00316.88
8.0.190.0030.00316.74
8.0.180.0050.00316.89
8.0.170.0090.00016.76
8.0.160.0000.00716.78
8.0.150.0020.00516.72
8.0.140.0030.00316.75
8.0.130.0060.00013.33
8.0.120.0040.00416.75
8.0.110.0030.00416.88
8.0.100.0000.00716.69
8.0.90.0070.00016.64
8.0.80.0060.01016.70
8.0.70.0000.00716.69
8.0.60.0000.00716.87
8.0.50.0040.00416.68
8.0.30.0080.01216.93
8.0.20.0090.01017.40
8.0.10.0030.00316.79
8.0.00.0100.00916.56
7.4.330.0000.00515.55
7.4.320.0060.00016.55
7.4.300.0030.00316.59
7.4.290.0000.00716.47
7.4.280.0000.00716.38
7.4.270.0000.00716.48
7.4.260.0000.00716.47
7.4.250.0030.00516.59
7.4.240.0040.00416.48
7.4.230.0040.00316.59
7.4.220.0060.00316.61
7.4.210.0100.00916.55
7.4.200.0050.00216.57
7.4.160.0090.00816.48
7.4.140.0130.00717.86
7.4.130.0190.00316.55
7.4.120.0100.00916.38
7.4.110.0030.01516.48
7.4.100.0090.00916.41
7.4.90.0060.01516.51
7.4.80.0070.01319.39
7.4.70.0100.00716.45
7.4.60.0130.00616.29
7.4.50.0110.00816.24
7.4.40.0130.01216.19
7.4.30.0110.00716.16
7.4.20.0070.01116.45
7.4.10.0060.01215.79
7.4.00.0080.00915.66
7.3.330.0030.00313.30
7.3.320.0000.00613.26
7.3.310.0000.00816.26
7.3.300.0030.00316.18
7.3.290.0030.00316.17
7.3.280.0100.00716.33
7.3.260.0070.01116.43
7.3.240.0110.00816.33
7.3.230.0080.00816.48
7.3.210.0060.00916.22
7.3.200.0120.00316.23
7.3.190.0100.00616.33
7.3.180.0070.01016.41
7.3.170.0030.01216.31
7.3.160.0100.00916.23
7.3.150.0090.00916.34
7.3.140.0110.00716.31
7.3.130.0090.00815.81
7.3.120.0100.01115.79
7.3.110.0100.00615.80
7.3.100.0110.00615.79
7.3.90.0090.00715.51
7.3.80.0080.01115.61
7.3.70.0100.00715.49
7.3.60.0100.01015.46
7.3.50.0090.00815.46
7.3.40.0110.00715.45
7.3.30.0110.01015.57
7.3.20.0090.00916.52
7.3.10.0120.00616.45
7.3.00.0090.00716.48
7.2.330.0080.00816.73
7.2.320.0120.00616.56
7.2.310.0070.01116.44
7.2.300.0060.01016.47
7.2.290.0120.01216.04
7.2.280.0080.01216.51
7.2.270.0130.00516.35
7.2.260.0110.00715.96
7.2.250.0050.01116.01
7.2.240.0110.00615.81
7.2.230.0080.00915.84
7.2.220.0080.00915.61
7.2.210.0090.00815.52
7.2.200.0090.01015.68
7.2.190.0100.01215.63
7.2.180.0110.00815.61
7.2.170.0120.01015.52
7.2.160.0120.00815.58
7.2.150.0120.00816.64
7.2.140.0080.01016.67
7.2.130.0070.00916.66
7.2.120.0100.00716.58
7.2.110.0100.00816.61
7.2.100.0080.00916.57
7.2.90.0100.00916.54
7.2.80.0090.01016.70
7.2.70.0060.01316.62
7.2.60.0100.00816.64
7.2.50.0090.00716.72
7.2.40.0510.00816.78
7.2.30.0430.00916.79
7.2.20.0520.00716.81
7.2.10.0440.00916.77
7.2.00.0080.01016.84
7.1.330.0090.01015.57
7.1.320.0110.00715.09
7.1.310.0180.01014.98
7.1.300.0140.00915.53
7.1.290.0100.00915.55
7.1.280.0120.00715.57
7.1.270.0100.00915.36
7.1.260.0110.00815.50
7.1.250.0120.00715.63
7.1.240.0100.00815.48
7.1.230.0110.00815.50
7.1.220.0080.01215.40
7.1.210.0100.01015.43
7.1.200.0110.00815.44
7.1.190.0140.00715.60
7.1.180.0110.00615.49
7.1.170.0140.01015.48
7.1.160.0530.00715.78
7.1.150.0610.00815.75
7.1.140.0550.00915.83
7.1.130.0110.00715.77
7.1.120.0180.01015.89
7.1.110.0140.00815.70
7.1.100.0290.00915.79
7.1.90.0160.00915.70
7.1.80.0130.00815.71
7.1.70.0080.01215.50
7.1.60.0130.01019.14
7.1.50.0210.01019.05
7.1.40.1390.00918.96
7.1.30.1310.00919.05
7.1.20.0620.01019.06
7.1.10.0140.01115.48
7.1.00.0140.00815.44
7.0.330.0180.00715.14
7.0.320.0140.00815.12
7.0.310.0210.00515.14
7.0.300.0180.00615.12
7.0.290.0110.00914.97
7.0.280.0160.00915.04
7.0.270.0070.01415.16
7.0.260.0130.01115.05
7.0.250.0170.00715.24
7.0.240.0170.00715.25
7.0.230.0150.00615.14
7.0.220.0090.01215.24
7.0.210.0170.00515.06
7.0.200.0140.00715.09
7.0.190.0140.00715.09
7.0.180.0250.00615.13
7.0.170.0100.01115.20
7.0.160.0090.01515.22
7.0.150.0180.00715.20
7.0.140.0160.01015.24
7.0.130.0220.00315.31
7.0.120.0200.00715.13
7.0.110.0170.00515.23
7.0.100.0190.00715.09
7.0.90.0120.00715.18
7.0.80.0140.01015.24
7.0.70.0130.01014.61
7.0.60.0150.00814.61
7.0.50.0120.01114.60
7.0.40.0120.01014.47
7.0.30.0210.00714.61
7.0.20.0120.00615.10
7.0.10.0240.00615.04
7.0.00.0140.00715.07
5.6.400.0200.01414.99
5.6.390.0140.01215.13
5.6.380.0170.00915.15
5.6.370.0120.01214.88
5.6.360.0120.00914.94
5.6.350.0120.01115.05
5.6.340.0120.01215.25
5.6.330.0140.01014.98
5.6.320.0150.00915.18
5.6.310.0100.01114.96
5.6.300.0150.02716.52
5.6.290.0150.02216.54
5.6.280.0220.02016.56
5.6.270.0190.02516.50
5.6.260.0150.02516.59
5.6.250.0120.02916.53
5.6.240.0170.02616.54
5.6.230.0160.02416.55
5.6.220.0140.02416.52
5.6.210.0180.02416.42
5.6.200.0180.02316.46
5.6.190.0150.02216.43
5.6.180.0140.02116.42
5.6.170.0140.02316.47
5.6.160.0100.02516.48
5.6.150.0100.02516.45
5.6.140.0140.02316.52
5.6.130.0180.02016.50
5.6.120.0090.02816.51
5.6.110.0130.02316.52
5.6.100.0140.02116.37
5.6.90.0160.02016.50
5.6.80.0120.02216.31
5.6.70.0100.02816.30
5.6.60.0130.02416.28
5.6.50.0130.02016.25
5.6.40.0120.02216.21
5.6.30.0100.02416.35
5.6.20.0170.01816.28
5.6.10.0140.02316.32
5.6.00.0110.02416.25
5.5.380.0090.00914.01
5.5.370.0030.01714.31
5.5.360.0090.01214.23
5.5.350.0090.01413.84
5.5.340.0130.00913.73
5.5.330.0150.00913.93
5.5.320.0110.00714.23
5.5.310.0190.00313.71
5.5.300.0160.00814.36
5.5.290.0190.00213.85
5.5.280.0150.00313.68
5.5.270.0070.01113.89
5.5.260.0120.00814.14
5.5.250.0220.00014.09
5.5.240.0070.01113.82
5.5.230.0150.00414.24
5.5.220.0140.00514.17
5.5.210.0120.00813.71
5.5.200.0100.00813.93
5.5.190.0110.00813.79
5.5.180.0090.00913.86
5.5.170.0140.00413.82
5.5.160.0100.00713.77
5.5.150.0130.00513.69
5.5.140.0110.00613.68
5.5.130.0120.00614.17
5.5.120.0180.00314.09
5.5.110.0200.00013.56
5.5.100.0100.01313.76
5.5.90.0110.01214.05
5.5.80.0110.00813.98
5.5.70.0150.00313.82
5.5.60.0100.01013.96
5.5.50.0140.00313.77
5.5.40.0130.00713.53
5.5.30.0160.00313.79
5.5.20.0070.01113.72
5.5.10.0150.00414.16
5.5.00.0060.01514.08
5.4.450.0050.01012.46
5.4.440.0180.00612.46
5.4.430.0060.00812.46
5.4.420.0060.00612.46
5.4.410.0110.00212.46
5.4.400.0070.00712.46
5.4.390.0110.00412.46
5.4.380.0110.00312.46
5.4.370.0100.00312.46
5.4.360.0120.00412.46
5.4.350.0090.00312.46
5.4.340.0070.00712.46
5.4.330.0080.00412.46
5.4.320.0090.00412.46
5.4.310.0120.00312.46
5.4.300.0120.00412.46
5.4.290.0090.00312.46
5.4.280.0120.00312.46
5.4.270.0080.00812.46
5.4.260.0110.00812.46
5.4.250.0130.00512.46
5.4.240.0120.00612.46
5.4.230.0110.00412.46
5.4.220.0090.00412.46
5.4.210.0030.01012.46
5.4.200.0080.00612.46
5.4.190.0030.01012.46
5.4.180.0090.00512.46
5.4.170.0080.00812.46
5.4.160.0080.00612.46
5.4.150.0130.00012.46
5.4.140.0060.00712.46
5.4.130.0070.00712.46
5.4.120.0100.00312.46
5.4.110.0090.00412.46
5.4.100.0140.00012.46
5.4.90.0070.00712.46
5.4.80.0130.00012.46
5.4.70.0090.00412.46
5.4.60.0030.01012.46
5.4.50.0100.00312.46
5.4.40.0070.01012.46
5.4.30.0120.00612.46
5.4.20.0110.00312.46
5.4.10.0100.00412.46
5.4.00.0130.00012.46
5.3.290.0070.00712.46
5.3.280.0120.00012.46
5.3.270.0110.00712.46
5.3.260.0050.01112.46
5.3.250.0060.00612.46
5.3.240.0070.00712.46
5.3.230.0060.00612.46
5.3.220.0080.00412.46
5.3.210.0100.00312.46
5.3.200.0050.00812.46
5.3.190.0040.00812.46
5.3.180.0080.00412.46
5.3.170.0100.00212.46
5.3.160.0110.00412.46
5.3.150.0050.01012.46
5.3.140.0090.00312.46
5.3.130.0090.00612.46
5.3.120.0060.00612.46
5.3.110.0060.00712.46
5.3.100.0000.01312.46
5.3.90.0080.00412.46
5.3.80.0040.00812.46
5.3.70.0060.00612.46
5.3.60.0040.00812.46
5.3.50.0040.00812.46
5.3.40.0070.00512.46
5.3.30.0100.00312.46
5.3.20.0130.00312.46
5.3.10.0100.00312.46
5.3.00.0080.00412.46
5.2.170.0050.00512.46
5.2.160.0110.00012.46
5.2.150.0070.00312.46
5.2.140.0060.00412.46
5.2.130.0030.00712.46
5.2.120.0040.00812.46
5.2.110.0090.00312.46
5.2.100.0060.00612.46
5.2.90.0110.00012.46
5.2.80.0070.00412.46
5.2.70.0110.00412.46
5.2.60.0100.00012.46
5.2.50.0000.01012.46
5.2.40.0120.00312.46
5.2.30.0070.00712.46
5.2.20.0150.00012.46
5.2.10.0050.00612.46
5.2.00.0060.00612.46
5.1.60.0030.00612.46
5.1.50.0000.00912.46
5.1.40.0080.00012.46
5.1.30.0080.00012.46
5.1.20.0070.00312.46
5.1.10.0080.00312.46
5.1.00.0000.00912.46
5.0.50.0080.00212.46
5.0.40.0080.00212.46
5.0.30.0040.00412.46
5.0.20.0050.00312.46
5.0.10.0000.00712.46
5.0.00.0040.00412.46
4.4.90.0050.00512.46
4.4.80.0000.00612.46
4.4.70.0030.00312.46
4.4.60.0000.00912.46
4.4.50.0050.00512.46
4.4.40.0000.00712.46
4.4.30.0060.00012.46
4.4.20.0050.00212.46
4.4.10.0060.00012.46
4.4.00.0000.00612.46
4.3.110.0030.00312.46
4.3.100.0060.00012.46
4.3.90.0040.00212.46
4.3.80.0000.00612.46
4.3.70.0060.00012.46
4.3.60.0060.00012.46
4.3.50.0040.00212.46
4.3.40.0080.00012.46
4.3.30.0060.00012.46
4.3.20.0000.00512.46
4.3.10.0000.00512.46
4.3.00.0000.00512.46

preferences:
80.29 ms | 403 KiB | 5 Q