3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); /** * @return string[] */ function helper(): array { return []; } $typed_string = helper(); $typed_string = mb_strtolower(array_pop($typed_string)); var_export($typed_string);

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.5.00.0100.01120.16
8.4.150.0030.00014.05
8.4.140.0100.01117.62
8.4.130.0100.00918.61
8.4.120.0110.00919.73
8.4.110.0130.00617.97
8.4.100.0130.00817.96
8.4.90.0090.01120.44
8.4.80.0130.00718.82
8.4.70.0100.00620.70
8.4.60.0070.00920.33
8.4.50.0110.01018.61
8.4.40.0090.00017.71
8.4.30.0130.00918.31
8.4.20.0070.00717.62
8.4.10.0060.00319.51
8.3.280.0120.00720.72
8.3.270.0160.00716.64
8.3.260.0120.00816.43
8.3.250.0060.00818.76
8.3.240.0130.00616.60
8.3.230.0060.00616.55
8.3.220.0100.00719.04
8.3.210.0070.00716.56
8.3.200.0050.00316.48
8.3.190.0050.00317.12
8.3.180.0050.00318.79
8.3.170.0070.01117.02
8.3.160.0060.01218.54
8.3.150.0080.00016.63
8.3.140.0000.00920.44
8.3.130.0040.00418.51
8.3.120.0030.01318.84
8.3.110.0100.00316.76
8.3.100.0100.01016.42
8.3.90.0080.01126.77
8.3.80.0000.01016.50
8.3.70.0100.00716.58
8.3.60.0110.01118.68
8.3.50.0060.00920.26
8.3.40.0090.00618.69
8.3.30.0070.00718.71
8.3.20.0070.00024.18
8.3.10.0070.00724.66
8.3.00.0090.00026.16
8.2.290.0110.00916.57
8.2.280.0050.00518.43
8.2.270.0120.00616.81
8.2.260.0050.00317.04
8.2.250.0000.00816.62
8.2.240.0060.00318.66
8.2.230.0080.00020.94
8.2.220.0040.00424.06
8.2.210.0060.00926.77
8.2.200.0090.00016.38
8.2.190.0120.00916.58
8.2.180.0110.00425.92
8.2.170.0070.00718.86
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0110.01121.12
8.2.100.0080.00317.72
8.2.90.0040.00417.75
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0030.00818.07
8.2.40.0000.00819.88
8.2.30.0000.00717.97
8.2.20.0060.00320.42
8.2.10.0040.00417.71
8.2.00.0000.00819.23
8.1.330.0110.00816.38
8.1.320.0070.00816.16
8.1.310.0070.00718.23
8.1.300.0040.00416.47
8.1.290.0000.00930.84
8.1.280.0140.00325.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00022.42
8.1.230.0030.00820.88
8.1.220.0040.00417.74
8.1.210.0050.00318.91
8.1.200.0030.00617.13
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0090.00018.39
8.1.160.0050.00318.73
8.1.150.0070.00018.59
8.1.140.0000.00717.37
8.1.130.0000.00720.28
8.1.120.0000.00717.38
8.1.110.0070.00017.36
8.1.100.0000.00717.36
8.1.90.0040.00417.30
8.1.80.0030.00517.41
8.1.70.0000.00717.39
8.1.60.0030.00617.56
8.1.50.0070.00017.52
8.1.40.0000.00817.50
8.1.30.0030.00617.66
8.1.20.0070.00717.63
8.1.10.0070.00317.47
8.1.00.0080.00317.29
8.0.300.0030.00319.99
8.0.290.0040.00416.75
8.0.280.0000.01020.17
8.0.270.0000.00719.73
8.0.260.0000.00618.37
8.0.250.0000.00716.88
8.0.240.0000.00616.92
8.0.230.0000.00716.80
8.0.220.0000.00716.89
8.0.210.0030.00316.90
8.0.200.0070.00016.96
8.0.190.0040.00416.94
8.0.180.0040.00416.91
8.0.170.0080.00016.88
8.0.160.0040.00416.86
8.0.150.0020.00716.73
8.0.140.0030.00616.63
8.0.130.0040.00416.75
8.0.120.0080.00016.77
8.0.110.0030.00516.82
8.0.100.0050.00316.75
8.0.90.0030.00616.62
8.0.80.0000.00816.82
8.0.70.0030.00616.64
8.0.60.0040.00416.74
8.0.50.0000.00716.71
8.0.30.0030.00616.82
8.0.20.0030.00516.79
8.0.10.0040.00417.00
7.4.330.0050.00015.55
7.4.320.0000.00716.54
7.4.300.0030.00316.60
7.4.290.0030.00316.36
7.4.280.0080.00016.56
7.4.270.0050.00216.54
7.4.260.0000.00716.47
7.4.250.0000.00716.48
7.4.240.0070.00016.34
7.4.230.0100.00016.47
7.4.220.0070.00016.53
7.4.210.0060.00316.43
7.4.200.0070.00016.46
7.4.190.0070.00016.64
7.4.180.0030.00316.60
7.4.160.0070.00016.65
7.4.150.0000.00716.37
7.4.140.0030.00316.55
7.4.130.0070.00016.53
7.4.120.0000.00816.30
7.4.110.0030.00316.42
7.4.100.0030.00516.48
7.4.90.0000.00716.45
7.4.80.0000.00816.44
7.4.70.0070.00016.43
7.4.60.0000.00616.41
7.4.50.0030.00316.40
7.4.40.0050.00316.32
7.4.30.0000.00716.27
7.4.20.0070.00016.39
7.4.10.0030.00316.41
7.4.00.0000.00716.45

preferences:
30.68 ms | 403 KiB | 5 Q