3v4l.org

run code in 300+ PHP versions simultaneously
<?hh interface StringConverter { public function toUpperCase(string $str) : string; } class Test implements StringConverter { public function toUpperCase(string $str) : string { return strtoupper($str); } } $t = new Test; var_dump($t->toUpperCase('re4k'));

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.0100.01016.50
8.3.50.0110.00821.92
8.3.40.0110.00418.68
8.3.30.0110.00418.97
8.3.20.0070.00020.21
8.3.10.0040.00423.65
8.3.00.0040.00419.11
8.2.180.0070.01018.33
8.2.170.0000.01422.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0050.00322.32
8.2.110.0030.00619.27
8.2.100.0110.00017.78
8.2.90.0040.00419.09
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00417.68
8.2.50.0050.00318.07
8.2.40.0000.00918.16
8.2.30.0030.00617.90
8.2.20.0040.00417.54
8.2.10.0000.00717.79
8.2.00.0000.00817.54
8.1.280.0070.01425.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00921.30
8.1.230.0070.00317.46
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.11
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0040.00418.48
8.1.160.0030.00521.89
8.1.150.0080.00018.58
8.1.140.0000.00717.21
8.1.130.0000.00717.66
8.1.120.0000.00717.29
8.1.110.0040.00417.21
8.1.100.0000.00817.33
8.1.90.0050.00317.32
8.1.80.0000.00717.30
8.1.70.0030.00317.18
8.1.60.0030.00617.30
8.1.50.0000.00717.33
8.1.40.0000.00717.35
8.1.30.0000.00917.54
8.1.20.0000.00817.45
8.1.10.0030.00617.33
8.1.00.0030.00617.26
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0040.00418.36
8.0.270.0000.00717.11
8.0.260.0070.00017.18
8.0.250.0030.00316.79
8.0.240.0060.00316.83
8.0.230.0030.00516.86
8.0.220.0070.00016.69
8.0.210.0030.00316.68
8.0.200.0000.00616.75
8.0.190.0040.00416.78
8.0.180.0050.00316.73
8.0.170.0050.00316.79
8.0.160.0040.00416.75
8.0.150.0080.00016.75
8.0.140.0000.00716.59
8.0.130.0030.00313.38
8.0.120.0000.00816.69
8.0.110.0000.00816.77
8.0.100.0030.00316.56
8.0.90.0000.00716.74
8.0.80.0150.00016.73
8.0.70.0040.00416.86
8.0.60.0000.00716.73
8.0.50.0040.00416.62
8.0.30.0080.01516.99
8.0.20.0100.00717.40
8.0.10.0000.00716.74
8.0.00.0090.00816.82
7.4.330.0000.00615.00
7.4.320.0070.00016.38
7.4.300.0000.00616.30
7.4.290.0040.00416.36
7.4.280.0030.00516.46
7.4.270.0000.00716.35
7.4.260.0050.00216.45
7.4.250.0070.00016.22
7.4.240.0010.00616.39
7.4.230.0000.00616.47
7.4.220.0030.01416.50
7.4.210.0060.00816.36
7.4.200.0070.00016.55
7.4.190.0000.00716.59
7.4.160.0110.00416.40
7.4.150.0150.00417.40
7.4.140.0090.00817.86
7.4.130.0080.00816.44
7.4.120.0070.01016.33
7.4.110.0140.00316.34
7.4.100.0100.00716.32
7.4.90.0030.01316.41
7.4.80.0120.00919.39
7.4.70.0090.01216.52
7.4.60.0030.01316.34
7.4.50.0050.00316.40
7.4.40.0070.01122.77
7.4.30.0030.01316.42
7.3.330.0030.00313.20
7.3.320.0000.00613.21
7.3.310.0020.00516.09
7.3.300.0030.00316.10
7.3.290.0090.00616.12
7.3.280.0090.00916.14
7.3.270.0160.00017.40
7.3.260.0190.00616.49
7.3.250.0070.00916.43
7.3.240.0080.01216.23
7.3.230.0040.01116.39
7.3.210.0100.00616.17
7.3.200.0070.01419.39
7.3.190.0060.01016.36
7.3.180.0070.00816.22
7.3.170.0150.00016.52
7.3.160.0060.01116.34
7.2.330.0150.00416.46
7.2.320.0080.00816.26
7.2.310.0140.00316.31
7.2.300.0030.01216.49
7.2.290.0060.01316.55
5.4.320.0050.03712.45
5.4.310.0090.03812.45
5.4.300.0060.04012.45
5.4.290.0070.04812.45
5.4.280.0110.04612.32
5.4.270.0100.04512.32
5.4.260.0080.05212.32
5.4.250.0080.05812.32
5.4.240.0100.06212.32
5.4.230.0080.05812.31
5.4.220.0130.05812.31
5.4.210.0120.05012.31
5.4.200.0060.05912.31
5.4.190.0220.07512.31
5.4.180.0110.07812.31
5.4.170.0120.05012.32
5.4.160.0080.05812.32
5.4.150.0060.04412.31
5.4.140.0080.05612.00
5.4.130.0090.04211.98
5.4.120.0120.06811.94
5.4.110.0120.06711.93
5.4.100.0160.06611.94
5.4.90.0150.06911.93
5.4.80.0120.06011.93
5.4.70.0110.05711.93
5.4.60.0130.04711.93
5.4.50.0150.06911.93
5.4.40.0180.08111.92
5.4.30.0080.05711.92
5.4.20.0200.07311.92
5.4.10.0060.05711.92
5.4.00.0100.07011.41
5.3.290.0070.03812.80
5.3.280.0070.06212.71
5.3.270.0170.08812.72
5.3.260.0120.04612.72
5.3.250.0080.06312.71
5.3.240.0200.11312.72
5.3.230.0250.07812.71
5.3.220.0110.04412.68
5.3.210.0090.04212.68
5.3.200.0120.04212.68
5.3.190.0090.04612.67
5.3.180.0090.04312.67
5.3.170.0080.04512.67
5.3.160.0070.04012.67
5.3.150.0060.04112.67
5.3.140.0070.04312.66
5.3.130.0090.04312.66
5.3.120.0110.03812.66
5.3.110.0160.06612.66
5.3.100.0080.04512.12
5.3.90.0110.04212.09
5.3.80.0050.03912.07
5.3.70.0120.04012.08
5.3.60.0090.06312.06
5.3.50.0140.07112.00
5.3.40.0090.06912.00
5.3.30.0130.05911.94
5.3.20.0100.05711.70
5.3.10.0120.06311.66
5.3.00.0120.05811.65

preferences:
39.04 ms | 401 KiB | 5 Q