3v4l.org

run code in 300+ PHP versions simultaneously
<?php class strings { function fix_string($a) { echo $a; } function fix_strings($b) { self::fix_striung($b); } } $s = new strings(); $ret = $s->fix_strings('Derick'); ?>

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.0090.00618.18
8.3.50.0120.00922.11
8.3.40.0040.01118.92
8.3.30.0150.00620.13
8.3.20.0030.01618.73
8.3.10.0040.00420.98
8.3.00.0040.00419.55
8.2.180.0090.00918.29
8.2.170.0110.00422.96
8.2.160.0070.00720.35
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00219.66
8.2.110.0060.00320.39
8.2.100.0060.00617.91
8.2.90.0080.00019.07
8.2.80.0000.00719.21
8.2.70.0100.00017.63
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0000.00819.82
8.2.30.0000.00721.28
8.2.20.0080.00017.64
8.2.10.0000.00817.59
8.2.00.0040.00717.68
8.1.280.0090.00625.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.33
8.1.230.0040.00720.89
8.1.220.0040.00418.77
8.1.210.0130.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.28
8.1.180.0040.00418.10
8.1.170.0040.00418.22
8.1.160.0050.00218.76
8.1.150.0000.00718.62
8.1.140.0000.00717.27
8.1.130.0030.00617.77
8.1.120.0060.00617.41
8.1.110.0050.00317.43
8.1.100.0000.00717.29
8.1.90.0000.00717.36
8.1.80.0000.00717.34
8.1.70.0000.00817.38
8.1.60.0000.01017.46
8.1.50.0040.00417.38
8.1.40.0030.00517.44
8.1.30.0030.00517.61
8.1.20.0030.00517.55
8.1.10.0000.00817.46
8.1.00.0040.00417.58
8.0.300.0000.00819.96
8.0.290.0040.00417.05
8.0.280.0070.00018.26
8.0.270.0000.00717.20
8.0.260.0030.00316.86
8.0.250.0000.00716.99
8.0.240.0030.00516.99
8.0.230.0000.00716.94
8.0.220.0000.00716.92
8.0.210.0020.00716.91
8.0.200.0000.00716.99
8.0.190.0040.00417.00
8.0.180.0050.00316.87
8.0.170.0040.00416.80
8.0.160.0000.00716.81
8.0.150.0030.00516.90
8.0.140.0040.00416.87
8.0.130.0030.00313.32
8.0.120.0050.00316.77
8.0.110.0000.00816.75
8.0.100.0040.00416.77
8.0.90.0030.00516.89
8.0.80.0070.00716.82
8.0.70.0050.00216.88
8.0.60.0000.00716.84
8.0.50.0040.00416.91
8.0.30.0070.01217.12
8.0.20.0110.00817.40
8.0.10.0000.00716.89
8.0.00.0100.01016.67
7.4.330.0020.00216.77
7.4.320.0000.00616.46
7.4.300.0030.00516.60
7.4.290.0070.00016.49
7.4.280.0050.00216.50
7.4.270.0080.00016.52
7.4.260.0050.00013.24
7.4.250.0030.00516.48
7.4.240.0000.00716.54
7.4.230.0030.00316.53
7.4.220.0090.00916.59
7.4.210.0050.01016.57
7.4.200.0000.00716.60
7.4.190.0030.00316.73
7.4.160.0120.00316.51
7.4.150.0090.00917.40
7.4.140.0140.00617.86
7.4.130.0080.01116.61
7.4.120.0070.01016.63
7.4.110.0090.00916.46
7.4.100.0070.01016.41
7.4.90.0130.01016.52
7.4.80.0100.00719.39
7.4.70.0100.00716.46
7.4.60.0090.00616.43
7.4.50.0090.00016.37
7.4.40.0040.01122.77
7.4.30.0190.00616.29
7.4.00.0120.00515.06
7.3.330.0000.00513.30
7.3.320.0000.00613.37
7.3.310.0030.00316.22
7.3.300.0000.00616.38
7.3.290.0160.00316.38
7.3.280.0090.00916.33
7.3.270.0070.01017.40
7.3.260.0080.00918.24
7.3.250.0080.00816.36
7.3.240.0100.01316.55
7.3.230.0080.00816.55
7.3.210.0060.01016.42
7.3.200.0110.00519.39
7.3.190.0120.00416.30
7.3.180.0070.01016.54
7.3.170.0120.00416.43
7.3.160.0060.01016.34
7.3.120.0050.01014.89
7.3.110.0040.01414.71
7.3.100.0040.01414.60
7.3.90.0060.01314.77
7.3.80.0090.00914.62
7.3.70.0030.01414.79
7.3.60.0030.01214.66
7.3.50.0070.00714.51
7.3.40.0070.01114.84
7.3.30.0030.01014.82
7.3.20.0000.00816.38
7.3.10.0070.00416.57
7.3.00.0120.00016.34
7.2.330.0100.00716.64
7.2.320.0080.01116.45
7.2.310.0120.00616.35
7.2.300.0060.01116.34
7.2.290.0070.01016.75
7.2.250.0000.01514.88
7.2.240.0030.01714.94
7.2.230.0030.01714.72
7.2.220.0030.01314.93
7.2.210.0070.01014.87
7.2.200.0030.00714.99
7.2.190.0060.00614.97
7.2.180.0060.00614.98
7.2.170.0040.01115.02
7.2.60.0030.01116.66
7.2.00.0070.00719.32
7.1.330.0030.01015.77
7.1.320.0090.00615.78
7.1.310.0060.00815.60
7.1.300.0000.01715.55
7.1.290.0000.01215.77
7.1.280.0050.00515.63
7.1.270.0130.00015.47
7.1.260.0060.00615.70
7.1.200.0030.00715.64
7.1.100.0000.01218.09
7.1.70.0000.01016.71
7.1.60.0070.01719.24
7.1.50.0180.00016.73
7.1.00.0000.03722.54
7.0.200.0030.00616.77
7.0.140.0070.07021.95
7.0.110.0000.04021.70
7.0.100.0100.07721.80
7.0.90.0030.09021.64
7.0.80.0070.08021.69
7.0.70.0030.08021.80
7.0.60.0100.07321.79
7.0.50.0030.07721.70
7.0.40.0030.07319.59
7.0.30.0070.07319.69
7.0.20.0100.06319.79
7.0.10.0070.07319.73
7.0.00.0030.08319.64
5.6.280.0030.07320.91
5.6.260.0070.07720.84
5.6.250.0030.05020.54
5.6.240.0070.05020.54
5.6.230.0130.07320.59
5.6.220.0070.04720.63
5.6.210.0000.08720.59
5.6.200.0030.08720.57
5.6.190.0100.08020.50
5.6.180.0000.08020.42
5.6.170.0030.05020.55
5.6.160.0070.07720.61
5.6.150.0000.08720.81
5.6.140.0130.07320.54
5.6.130.0030.08020.41
5.6.120.0100.05020.60
5.6.110.0030.08020.62
5.6.100.0070.04720.58
5.6.90.0030.03720.48
5.6.80.0000.05319.96
5.6.70.0000.08019.87
5.6.60.0070.07019.94
5.6.50.0030.07719.90
5.6.40.0030.04319.87
5.6.30.0030.08320.02
5.6.20.0070.04019.95
5.6.10.0000.05720.00
5.6.00.0070.04319.95
5.5.380.0030.07717.52
5.5.370.0000.05017.59
5.5.360.0100.07717.55
5.5.350.0000.08017.54
5.5.340.0070.08018.23
5.5.330.0100.04018.05
5.5.320.0030.08017.95
5.5.310.0100.07018.13
5.5.300.0030.07017.84
5.5.290.0000.07718.13
5.5.280.0070.04718.13
5.5.270.0030.08317.92
5.5.260.0000.06317.90
5.5.250.0000.08317.74
5.5.240.0030.06717.51
5.5.230.0030.05017.31
5.5.220.0100.06317.46
5.5.210.0070.07317.21
5.5.200.0000.08017.48
5.5.190.0030.08017.28
5.5.180.0000.07317.26
5.5.160.0070.07317.18
5.5.150.0170.07017.26
5.5.140.0100.04017.44
5.5.130.0000.06317.46
5.5.120.0000.04717.45
5.5.110.0070.05017.27
5.5.100.0070.04317.51
5.5.90.0130.06017.16
5.5.80.0030.07317.38
5.5.70.0000.08017.37
5.5.60.0100.06317.07
5.5.50.0030.07717.46
5.5.40.0030.07717.17
5.5.30.0030.07717.29
5.5.20.0070.07717.16
5.5.10.0070.08017.34
5.5.00.0030.07017.19
5.4.450.0030.05019.61
5.4.440.0030.08019.50
5.4.430.0030.08019.25
5.4.420.0030.03719.28
5.4.410.0070.05319.34
5.4.400.0000.04319.04
5.4.390.0000.04719.09
5.4.380.0000.08019.19
5.4.370.0070.06719.04
5.4.360.0070.06019.11
5.4.350.0000.07718.93
5.4.340.0030.07019.26
5.4.320.0030.05719.21
5.4.310.0030.06718.90
5.4.300.0100.05719.19
5.4.290.0030.06319.19
5.4.280.0070.07018.93
5.4.270.0130.05719.11
5.4.260.0000.08318.89
5.4.250.0130.06719.18
5.4.240.0070.07318.91
5.4.230.0030.07718.95
5.4.220.0030.06319.12
5.4.210.0070.06718.97
5.4.200.0030.07019.12
5.4.190.0070.07019.21
5.4.180.0030.07319.27
5.4.170.0030.06019.10
5.4.160.0070.07018.95
5.4.150.0000.08018.96
5.4.140.0000.07716.34
5.4.130.0030.07716.48
5.4.120.0070.04716.49
5.4.110.0070.07316.53
5.4.100.0030.05716.26
5.4.90.0030.07716.43
5.4.80.0000.06716.27
5.4.70.0030.07016.37
5.4.60.0000.04716.29
5.4.50.0000.04316.40
5.4.40.0070.04016.24
5.4.30.0030.07016.18
5.4.20.0000.04316.41
5.4.10.0070.07716.52
5.4.00.0000.07715.99
5.3.290.0030.04314.76
5.3.280.0000.07714.63
5.3.270.0000.08314.74
5.3.260.0030.07714.73
5.3.250.0030.07314.58
5.3.240.0000.07314.73
5.3.230.0030.07714.57
5.3.220.0030.07314.60
5.3.210.0030.07014.65
5.3.200.0000.07714.57
5.3.190.0000.04314.80
5.3.180.0070.06314.57
5.3.170.0070.05014.69
5.3.160.0000.04714.71
5.3.150.0030.04314.68
5.3.140.0030.06714.51
5.3.130.0000.08014.57
5.3.120.0000.08014.40
5.3.110.0000.08014.62
5.3.100.0070.04314.17
5.3.90.0030.07014.05
5.3.80.0030.06714.02
5.3.70.0000.08014.16
5.3.60.0070.06014.01
5.3.50.0030.07014.09
5.3.40.0070.04014.02
5.3.30.0100.06713.87
5.3.20.0030.04013.67
5.3.10.0030.07313.65
5.3.00.0000.07013.71
5.2.170.0030.04011.16
5.2.160.0030.06011.28
5.2.150.0030.06311.14
5.2.140.0030.06311.21
5.2.130.0030.06011.12
5.2.120.0030.05711.12
5.2.110.0000.06011.11
5.2.100.0000.03711.12
5.2.90.0000.05711.13
5.2.80.0000.04711.07
5.2.70.0030.06011.32
5.2.60.0030.06311.08
5.2.50.0000.06011.17
5.2.40.0000.07010.99
5.2.30.0030.05011.03
5.2.20.0000.03711.10
5.2.10.0030.04010.99
5.2.00.0000.03710.67
5.1.60.0070.04010.15
5.1.50.0000.0539.99
5.1.40.0030.04310.04
5.1.30.0000.05310.29
5.1.20.0030.05310.32
5.1.10.0030.05710.13
5.1.00.0000.05010.06
5.0.50.0030.0478.70
5.0.40.0030.0408.59
5.0.30.0000.0638.22
5.0.20.0000.0438.18
5.0.10.0030.0438.14
5.0.00.0000.0577.99
4.4.90.0070.0307.28
4.4.80.0000.0307.28
4.4.70.0070.0237.28
4.4.60.0000.0237.28
4.4.50.0030.0337.28
4.4.40.0000.0537.28
4.4.30.0000.0377.28
4.4.20.0000.0377.28
4.4.10.0000.0377.28
4.4.00.0030.0377.28
4.3.110.0030.0307.28
4.3.100.0030.0337.28
4.3.90.0000.0377.28
4.3.80.0000.0537.28
4.3.70.0000.0337.28
4.3.60.0000.0377.28
4.3.50.0000.0377.28
4.3.40.0000.0507.28
4.3.30.0030.0337.28
4.3.20.0030.0207.28
4.3.10.0030.0337.28
4.3.00.0000.0377.28

preferences:
44.43 ms | 401 KiB | 5 Q