3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Test emoji \U0001F607 \U0001F63C'; echo preg_replace_callback( '/\\\U([A-F0-9]+)/', function ($matches) { return mb_convert_encoding(hex2bin($matches[1]), 'UTF-8', 'UTF-32'); }, $str );

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.140.0120.01017.77
8.4.130.0110.00918.79
8.4.120.0150.00524.23
8.4.110.0020.00718.88
8.4.100.0310.00918.29
8.4.90.0310.00818.20
8.4.80.0310.00818.01
8.4.70.0290.01118.02
8.4.60.0310.00818.20
8.4.50.0300.01017.91
8.4.40.0340.00818.21
8.4.30.0270.00918.13
8.4.20.0320.00517.72
8.4.10.0260.00818.40
8.3.270.0130.01216.35
8.3.260.0120.00716.61
8.3.250.0100.00919.11
8.3.240.0110.00916.98
8.3.230.0170.00416.68
8.3.220.0150.00516.74
8.3.210.0240.00916.67
8.3.200.0180.00716.54
8.3.190.0270.00816.84
8.3.180.0200.00516.77
8.3.170.0210.00616.62
8.3.160.0290.00716.58
8.3.150.0250.00916.83
8.3.140.0320.00716.62
8.3.130.0260.00616.85
8.3.120.0230.00916.84
8.3.110.0230.00916.80
8.3.100.0230.00918.89
8.3.90.0280.00619.98
8.3.80.0300.00718.83
8.3.70.0280.01018.87
8.3.60.0270.00619.07
8.3.50.0290.00619.27
8.3.40.0280.00620.08
8.3.30.0240.00819.92
8.3.20.0220.00721.73
8.3.10.0170.00722.02
8.3.00.0170.00622.20
8.2.290.0270.00717.92
8.2.280.0250.00816.76
8.2.270.0250.00716.68
8.2.260.0230.00616.85
8.2.250.0210.00816.84
8.2.240.0240.00516.60
8.2.230.0240.00617.03
8.2.220.0200.00819.81
8.2.210.0230.00720.00
8.2.200.0220.00719.24
8.2.190.0220.00818.94
8.2.180.0240.00619.99
8.2.170.0250.00820.12
8.2.160.0260.00620.51
8.2.150.0220.00521.58
8.2.140.0210.00721.86
8.2.130.0180.00822.39
8.2.120.0180.00721.95
8.2.110.0170.00621.83
8.2.100.0160.00721.65
8.2.90.0170.00721.24
8.2.80.0200.00721.21
8.2.70.0210.00623.88
8.2.60.0210.00623.86
8.2.50.0200.00523.73
8.2.40.0150.00722.80
8.2.30.0150.00722.70
8.2.20.0150.00622.44
8.2.10.0140.00621.87
8.2.00.0140.00621.77
8.1.330.0200.00818.27
8.1.320.0220.00416.32
8.1.310.0230.00716.37
8.1.300.0240.00616.52
8.1.290.0240.00720.25
8.1.280.0260.00719.77
8.1.270.0200.00621.95
8.1.260.0200.00522.50
8.1.250.0200.00522.59
8.1.240.0180.00621.39
8.1.230.0190.00621.46
8.1.220.0170.00620.99
8.1.210.0180.00721.05
8.1.200.0180.00523.68
8.1.190.0190.00623.69
8.1.180.0160.00723.45
8.1.170.0160.00522.61
8.1.160.0150.00622.58
8.1.150.0140.00722.30
8.1.140.0140.00621.64
8.1.130.0140.00621.45
8.1.120.0130.00721.43
8.1.110.0150.00421.38
8.1.100.0150.00421.23
8.1.90.0140.00521.24
8.1.80.0130.00621.31
8.1.70.0130.00621.23
8.1.60.0140.00521.34
8.1.50.0130.00721.29
8.1.40.0140.00621.33
8.1.30.0140.00621.34
8.1.20.0150.00421.42
8.1.10.0150.00521.29
8.1.00.0130.00621.23
8.0.300.0190.00420.57
8.0.290.0200.00723.03
8.0.280.0190.00622.07
8.0.270.0160.00421.41
8.0.260.0150.00520.88
8.0.250.0160.00520.80
8.0.240.0150.00520.79
8.0.230.0140.00520.33
8.0.220.0140.00620.59
8.0.210.0150.00520.60
8.0.200.0140.00620.66
8.0.190.0150.00520.69
8.0.180.0140.00520.67
8.0.170.0160.00520.69
8.0.160.0140.00520.78
8.0.150.0150.00520.65
8.0.140.0140.00620.62
8.0.130.0150.00520.65
8.0.120.0150.00520.65
8.0.110.0130.00520.77
8.0.100.0140.00620.64
8.0.90.0150.00520.66
8.0.80.0140.00520.70
8.0.70.0160.00420.73
8.0.60.0140.00620.63
8.0.50.0140.00620.62
8.0.30.0140.00520.79
8.0.20.0130.00620.79
8.0.10.0140.00620.77
7.4.330.0130.00420.03
7.4.320.0150.00620.60
7.4.300.0150.00620.47
7.4.290.0160.00620.49
7.4.280.0170.00520.49
7.4.270.0160.00620.49
7.4.260.0170.00520.51
7.4.250.0180.00420.49
7.4.240.0170.00420.53
7.4.230.0170.00520.55
7.4.220.0150.00620.50
7.4.210.0150.00520.51
7.4.200.0160.00520.50
7.4.190.0150.00520.59
7.4.180.0160.00520.52
7.4.160.0170.00420.53
7.4.150.0160.00420.53
7.4.140.0170.00420.50
7.4.130.0170.00520.49
7.4.120.0160.00520.55
7.4.110.0160.00620.48
7.4.100.0160.00520.53
7.4.90.0160.00520.49
7.4.80.0150.00520.50
7.4.70.0160.00520.51
7.4.60.0160.00520.56
7.4.50.0150.00420.46
7.4.40.0150.00620.48
7.4.30.0160.00420.47
7.4.20.0150.00620.46
7.4.10.0160.00420.45
7.4.00.0150.00520.45

preferences:
32.55 ms | 403 KiB | 5 Q