3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = "-\r-\r\n-\n-"; $hex = bin2hex($code); var_dump($hex); $code1 = str_replace("\r\n", "\n", $code); $hex = bin2hex($code1); var_dump($hex); $code2 = str_replace(array("\r\n", "\r"), "\n", $code); $hex = bin2hex($code2); var_dump($hex);

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.40.0070.01118.67
8.3.30.0060.00918.75
8.3.20.0000.00820.37
8.3.10.0070.00023.48
8.3.00.0040.00419.12
8.2.170.0120.00922.96
8.2.160.0070.00722.06
8.2.150.0000.00724.18
8.2.140.0060.00324.66
8.2.130.0090.00026.16
8.2.120.0000.00820.77
8.2.110.0060.00322.05
8.2.100.0090.00319.45
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0080.00018.22
8.2.30.0040.00417.92
8.2.20.0050.00317.62
8.2.10.0050.00318.06
8.2.00.0000.00817.63
8.1.270.0040.00418.70
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.85
8.1.230.0040.00819.16
8.1.220.0030.00617.77
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0040.00417.00
8.1.180.0080.00018.10
8.1.170.0030.00518.50
8.1.160.0050.00221.86
8.1.150.0040.00418.82
8.1.140.0040.00419.17
8.1.130.0070.00017.92
8.1.120.0070.00017.42
8.1.110.0040.00417.25
8.1.100.0000.00717.36
8.1.90.0040.00417.38
8.1.80.0000.00717.24
8.1.70.0070.00017.29
8.1.60.0050.00317.49
8.1.50.0030.00617.44
8.1.40.0040.00417.35
8.1.30.0040.00417.42
8.1.20.0040.00417.54
8.1.10.0040.00417.51
8.1.00.0000.00717.42
8.0.300.0050.00318.77
8.0.290.0000.00916.63
8.0.280.0070.00018.38
8.0.270.0040.00417.14
8.0.260.0030.00317.09
8.0.250.0070.00016.92
8.0.240.0050.00316.91
8.0.230.0050.00316.79
8.0.220.0030.00316.78
8.0.210.0030.00316.88
8.0.200.0050.00516.84
8.0.190.0060.00316.78
8.0.180.0080.00016.86
8.0.170.0090.00016.89
8.0.160.0070.00016.68
8.0.150.0030.00316.78
8.0.140.0030.00316.79
8.0.130.0000.00913.30
8.0.120.0080.00016.76
8.0.110.0050.00316.82
8.0.100.0030.00616.82
8.0.90.0050.00216.69
8.0.80.0100.00716.75
8.0.70.0070.00016.84
8.0.60.0050.00316.89
8.0.50.0000.00716.71
8.0.30.0120.01116.97
8.0.20.0080.01017.40
8.0.10.0070.00016.98
8.0.00.0090.01116.79
7.4.330.0000.00515.14
7.4.320.0060.00016.56
7.4.300.0030.00616.52
7.4.290.0030.00316.38
7.4.280.0050.00316.49
7.4.270.0050.00216.52
7.4.260.0000.00616.54
7.4.250.0040.00416.45
7.4.240.0030.00316.45
7.4.230.0030.00316.37
7.4.220.0030.01316.58
7.4.210.0030.01616.55
7.4.200.0000.00716.63
7.4.160.0040.01116.31
7.4.150.0130.01317.40
7.4.140.0120.00817.86
7.4.130.0140.00416.38
7.4.120.0130.00616.36
7.4.110.0070.01016.32
7.4.100.0070.01016.43
7.4.90.0140.00316.43
7.4.80.0140.01319.39
7.4.70.0090.00916.41
7.4.60.0060.01216.55
7.4.50.0050.00216.46
7.4.40.0000.01716.29
7.4.30.0090.00916.61
7.4.00.0070.00714.79
7.3.330.0000.00612.98
7.3.320.0000.00513.05
7.3.310.0000.00716.18
7.3.300.0030.00316.07
7.3.290.0050.00916.17
7.3.280.0130.00516.09
7.3.270.0110.00617.40
7.3.260.0070.01116.22
7.3.250.0110.00616.35
7.3.240.0170.00016.07
7.3.230.0130.00316.39
7.3.210.0040.01216.17
7.3.200.0160.00619.39
7.3.190.0070.00816.43
7.3.180.0110.00616.09
7.3.170.0060.00916.29
7.3.160.0030.01316.23
7.3.10.0120.00316.31
7.3.00.0070.00716.41
7.2.330.0100.00716.31
7.2.320.0120.00416.62
7.2.310.0120.00416.33
7.2.300.0100.00616.20
7.2.290.0130.00916.34
7.2.130.0060.01016.71
7.2.120.0030.01216.57
7.2.110.0030.00916.85
7.2.100.0000.01716.66
7.2.90.0090.00616.72
7.2.80.0080.00416.45
7.2.70.0060.00616.50
7.2.60.0060.00316.64
7.2.50.0030.00716.90
7.2.40.0070.00416.41
7.2.30.0060.00316.73
7.2.20.0000.01416.61
7.2.10.0070.00316.54
7.2.00.0070.00517.99
7.1.250.0090.00015.74
7.1.100.0000.01418.22
7.1.70.0040.01117.25
7.1.60.0160.01019.46
7.1.50.0060.01916.98
7.1.00.0070.07322.55
7.0.200.0000.00816.49
7.0.140.0030.05322.09
7.0.60.0000.06319.81
7.0.50.0130.04717.85
7.0.40.0030.08719.99
7.0.30.0230.08720.09
7.0.20.0230.04720.16
7.0.10.0070.06320.18
7.0.00.0100.08020.30
5.6.280.0070.06720.81
5.6.210.0130.07020.74
5.6.200.0030.04018.21
5.6.190.0130.06020.35
5.6.180.0130.04720.61
5.6.170.0270.05020.38
5.6.160.0170.08020.49
5.6.150.0000.08718.18
5.6.140.0030.04318.13
5.6.130.0130.04718.21
5.6.120.0070.07020.98
5.6.110.0000.09320.88
5.6.100.0100.08321.00
5.6.90.0000.04721.07
5.6.80.0100.08020.52
5.5.350.3730.04720.38
5.5.340.0070.05017.92
5.5.330.0070.07320.13
5.5.320.0200.04320.13
5.5.310.0300.08020.36
5.5.300.0130.03717.98
5.5.290.0070.03718.01
5.5.280.0170.07020.72
5.5.270.0170.06320.83
5.5.260.0070.09320.79
5.5.250.0030.04020.69
5.5.240.0070.07320.26
5.4.450.0770.05019.59
5.4.440.0630.06019.16
5.4.430.0800.05319.22
5.4.420.0900.04319.44
5.4.410.0900.05719.29
5.4.400.0830.04719.13
5.4.390.0270.04718.72
5.4.380.0130.06318.77
5.4.370.0200.07718.48
5.4.360.0230.05018.72
5.4.350.0170.06018.79
5.4.340.0130.06018.78
5.4.320.0230.05718.69
5.4.310.0170.06018.50
5.4.300.0200.06018.67
5.4.290.0470.04718.70
5.4.280.0200.05318.62
5.4.270.0270.04718.55
5.4.260.0130.05718.51
5.4.250.0300.04718.46
5.4.240.0200.05718.50
5.4.230.0230.05018.50
5.4.220.0270.04718.61
5.4.210.0170.05718.76
5.4.200.0200.05016.53
5.4.190.0230.05018.69
5.4.180.0230.04718.70
5.4.170.0100.06318.47
5.4.160.0200.05018.70
5.4.150.0100.06318.66
5.4.140.0170.05316.38
5.4.130.0330.03316.28
5.4.120.0170.05316.08
5.4.110.0170.05316.08
5.4.100.0230.05716.24
5.4.90.0270.05716.16
5.4.80.0170.05316.04
5.4.70.0200.05016.32
5.4.60.0270.04316.00
5.4.50.0200.04716.16
5.4.40.0200.05016.28
5.4.30.0130.05716.12
5.4.20.0070.06316.28
5.4.10.0100.06016.32
5.4.00.0270.04315.80
5.3.290.0200.06014.64
5.3.280.0270.04714.61
5.3.270.0300.05014.50
5.3.260.0170.05714.68
5.3.250.0270.05314.55
5.3.240.0200.05314.70
5.3.230.0270.05314.50
5.3.220.0200.05014.56
5.3.210.0300.04314.55
5.3.200.0200.05014.49
5.3.190.0200.05314.48
5.3.180.0200.04714.55
5.3.170.0200.04714.57
5.3.160.0130.05314.61
5.3.150.0300.04714.51
5.3.140.0230.04314.65
5.3.130.0170.05714.46
5.3.120.0030.07014.64
5.3.110.0270.05014.48
5.3.100.0300.04714.13
5.3.90.0200.05014.11
5.3.80.0070.06713.94
5.3.70.0170.05714.11
5.3.60.0300.06013.98
5.3.50.0270.04713.89
5.3.40.0200.05713.93
5.3.30.0200.05313.98
5.3.20.0200.04713.71
5.3.10.0170.06013.75
5.3.00.0200.05013.71
5.2.170.0200.03711.09
5.2.160.0200.04011.07
5.2.150.0270.04011.13
5.2.140.0070.05711.18
5.2.130.0200.03311.13
5.2.120.0100.04311.07
5.2.110.0170.04011.14
5.2.100.0330.03311.24
5.2.90.0370.03011.16
5.2.80.0200.04011.13
5.2.70.0170.06011.23
5.2.60.0230.03311.08
5.2.50.0130.05010.99
5.2.40.0170.03711.00
5.2.30.0130.04310.95
5.2.20.0100.04010.90
5.2.10.0130.04010.90
5.2.00.0130.04310.85
5.1.60.0130.03010.00
5.1.50.0130.03310.00
5.1.40.0230.02710.00
5.1.30.0070.04310.29
5.1.20.0130.03710.41
5.1.10.0170.03310.18
5.1.00.0070.04310.08
5.0.50.0070.0338.61
5.0.40.0100.0278.53
5.0.30.0100.0438.33
5.0.20.0030.0308.21
5.0.10.0100.0238.25
5.0.00.0030.0538.17
4.4.90.0030.0235.88
4.4.80.0100.0205.91
4.4.70.0000.0305.89
4.4.60.0070.0235.80
4.4.50.0100.0175.90
4.4.40.0000.0405.82
4.4.30.0100.0205.81
4.4.20.0070.0205.94
4.4.10.0070.0205.98
4.4.00.0030.0375.85
4.3.110.0070.0205.80
4.3.100.0070.0235.88
4.3.90.0070.0205.80
4.3.80.0070.0335.80
4.3.70.0030.0235.79
4.3.60.0070.0205.78
4.3.50.0030.0275.84
4.3.40.0030.0375.75
4.3.30.0100.0174.56
4.3.20.0070.0234.56
4.3.10.0000.0274.56
4.3.00.0130.0236.83

preferences:
48.77 ms | 400 KiB | 5 Q