3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<?php function test() { } "; mb_detect_order(["ASCII", "UUENCODE"]); var_dump( mb_detect_encoding($string, null, true), mb_detect_encoding($string, mb_detect_order(), true), );

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.10.0090.00719.99
8.5.00.0140.00722.86
8.4.160.0130.00923.73
8.4.150.0010.00114.05
8.4.140.0030.00617.43
8.4.130.0120.01017.90
8.4.120.0130.00522.22
8.4.110.0100.00322.40
8.4.100.0120.00717.46
8.4.90.0090.00818.25
8.4.80.0030.00517.50
8.4.70.0040.00417.54
8.4.60.0050.00418.83
8.4.50.0150.00618.41
8.4.40.0090.00619.63
8.4.30.0100.01020.57
8.4.20.0130.00619.93
8.4.10.0130.00621.94
8.3.280.0120.00818.43
8.3.270.0160.00816.46
8.3.260.0130.00516.39
8.3.250.0120.00819.07
8.3.240.0110.00916.73
8.3.230.0160.00416.64
8.3.220.0050.01217.13
8.3.210.0090.00716.53
8.3.200.0060.00316.33
8.3.190.0120.00817.04
8.3.180.0040.00418.45
8.3.170.0080.00016.92
8.3.160.0070.01116.55
8.3.150.0070.01118.79
8.3.140.0110.00717.04
8.3.130.0030.00616.35
8.3.120.0060.00318.79
8.3.110.0050.00520.94
8.3.100.0080.00424.06
8.3.90.0040.00426.77
8.3.80.0060.00316.50
8.3.70.0090.00616.58
8.3.60.0140.00716.50
8.3.50.0120.00319.93
8.3.40.0120.00321.79
8.3.30.0130.00718.29
8.3.20.0040.00424.18
8.3.10.0100.00024.66
8.3.00.0070.00026.16
8.2.290.0050.00320.54
8.2.280.0050.00318.66
8.2.270.0100.00717.16
8.2.260.0000.00816.74
8.2.250.0000.00816.61
8.2.240.0060.00316.95
8.2.230.0030.00622.58
8.2.220.0050.00337.54
8.2.210.0040.00426.77
8.2.200.0070.00316.50
8.2.190.0080.00616.58
8.2.180.0120.00325.92
8.2.170.0100.01018.68
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0060.00326.16
8.2.120.0040.00426.16
8.2.110.0030.00721.00
8.2.100.0040.00717.59
8.2.90.0000.00917.78
8.2.80.0040.00419.27
8.2.70.0080.00017.36
8.2.60.0030.00517.61
8.2.50.0050.00318.04
8.2.40.0000.00819.71
8.2.30.0000.00718.04
8.2.20.0040.00420.36
8.2.10.0050.00317.96
8.2.00.0040.00419.22
8.1.330.0110.00823.46
8.1.320.0110.00815.98
8.1.310.0000.01016.71
8.1.300.0110.00418.38
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0090.00023.99
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00722.53
8.1.230.0040.00720.74
8.1.220.0000.00817.74
8.1.210.0040.00418.88
8.1.200.0050.00317.23
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0050.00317.62
8.1.160.0050.00218.72
8.1.150.0000.00718.62
8.1.140.0060.00317.41
8.1.130.0000.00817.49
8.1.120.0040.00417.50
8.1.110.0030.00717.43
8.1.100.0040.00517.41
8.1.90.0050.00417.42
8.1.80.0060.00517.43
8.1.70.0050.00717.37
8.1.60.0050.00817.43
8.1.50.0150.00217.44
8.1.40.0110.00317.44
8.1.30.0160.00217.62
8.1.20.0090.01017.61
8.1.10.0110.00617.41
8.1.00.0070.00717.35
8.0.300.0000.01019.73
8.0.290.0040.00416.75
8.0.280.0040.00418.48
8.0.270.0070.00016.79
8.0.260.0040.00416.68
8.0.250.0070.00017.00
8.0.240.0100.00216.94
8.0.230.0040.00716.88
8.0.220.0040.00716.80
8.0.210.0070.00416.82
8.0.200.0120.00416.80
8.0.190.0040.00916.83
8.0.180.0100.00716.75
8.0.170.0100.00616.81
8.0.160.0060.00816.82
8.0.150.0120.00116.78
8.0.140.0060.00716.73
8.0.130.0050.00916.76
8.0.120.0080.00516.74
8.0.110.0090.00616.77
8.0.100.0090.00616.80
8.0.90.0110.00416.75
8.0.80.0110.00416.82
8.0.70.0120.00316.63
8.0.60.0080.00616.78
8.0.50.0120.00216.79
8.0.30.0090.00416.76
8.0.20.0080.00516.79
8.0.10.0060.00616.88
7.4.330.0020.00215.55
7.4.320.0090.00016.39
7.4.300.0090.00216.34
7.4.290.0040.00616.23
7.4.280.0050.00716.31
7.4.270.0070.00516.34
7.4.260.0080.00216.23
7.4.250.0050.00816.22
7.4.240.0130.00316.40
7.4.230.0090.00516.44
7.4.220.0080.00516.34
7.4.210.0110.00316.29
7.4.200.0110.00316.41
7.4.190.0100.00416.41
7.4.180.0020.01016.42
7.4.160.0080.00216.27
7.4.150.0040.00616.25
7.4.140.0020.00916.31
7.4.130.0070.00416.16
7.4.120.0100.00216.06
7.4.110.0070.00416.15
7.4.100.0070.00316.38
7.4.90.0040.00616.35
7.4.80.0060.00416.32
7.4.70.0030.00716.33
7.4.60.0070.00316.32
7.4.50.0040.00616.17
7.4.40.0050.00716.27
7.4.30.0070.00516.24
7.4.20.0080.00416.28
7.4.10.0090.00316.38
7.4.00.0080.00516.27

preferences:
38.35 ms | 403 KiB | 5 Q