3v4l.org

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

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.0060.00918.30
8.3.50.0080.01021.92
8.3.40.0070.00718.43
8.3.30.0140.00019.06
8.3.20.0080.00020.16
8.3.10.0000.00823.52
8.3.00.0040.00419.06
8.2.180.0120.00316.50
8.2.170.0090.01322.96
8.2.160.0120.00322.13
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.87
8.2.110.0030.00619.27
8.2.100.0040.00817.91
8.2.90.0000.00817.90
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0000.00818.09
8.2.30.0060.00617.91
8.2.20.0040.00417.67
8.2.10.0040.00417.92
8.2.00.0000.00717.68
8.1.280.0030.01025.92
8.1.270.0000.00818.73
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.54
8.1.230.0040.00720.96
8.1.220.0050.00317.75
8.1.210.0080.00018.98
8.1.200.0030.00617.13
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.41
8.1.160.0000.00722.00
8.1.150.0040.00418.73
8.1.140.0030.00519.09
8.1.130.0030.00317.82
8.1.120.0080.00017.32
8.1.110.0040.00417.41
8.1.100.0000.00717.35
8.1.90.0030.00417.36
8.1.80.0030.00517.29
8.1.70.0030.00317.39
8.1.60.0040.00417.52
8.1.50.0050.00317.45
8.1.40.0000.00717.52
8.1.30.0000.00817.60
8.1.20.0040.00417.57
8.1.10.0040.00417.34
8.1.00.0000.00717.37
8.0.300.0040.00419.89
8.0.290.0070.00016.58
8.0.280.0030.00318.30
8.0.270.0000.00817.18
8.0.260.0030.00317.18
8.0.250.0000.00716.74
8.0.240.0070.00016.92
8.0.230.0000.00716.85
8.0.220.0000.00716.73
8.0.210.0000.00716.82
8.0.200.0030.00616.84
8.0.190.0000.00816.81
8.0.180.0000.00716.80
8.0.170.0040.00416.72
8.0.160.0000.00716.80
8.0.150.0030.00316.75
8.0.140.0040.00416.77
8.0.130.0030.00313.24
8.0.120.0040.00416.79
8.0.110.0000.00816.73
8.0.100.0000.00716.86
8.0.90.0000.00716.78
8.0.80.0090.00616.88
8.0.70.0000.00716.70
8.0.60.0040.00416.87
8.0.50.0030.00416.69
8.0.30.0160.00916.92
8.0.20.0070.01117.40
8.0.10.0030.00516.80
8.0.00.0100.00916.60
7.4.330.0000.00515.25
7.4.320.0040.00416.42
7.4.300.0000.00616.52
7.4.290.0030.00316.57
7.4.280.0040.00416.50
7.4.270.0040.00416.48
7.4.260.0000.00716.36
7.4.250.0030.00516.49
7.4.240.0020.00516.43
7.4.230.0030.00316.51
7.4.220.0090.01016.45
7.4.210.0060.01216.37
7.4.200.0040.00416.56
7.4.160.0060.01016.51
7.4.150.0100.01017.40
7.4.140.0080.00817.86
7.4.130.0090.00916.39
7.4.120.0120.00716.50
7.4.110.0090.00916.36
7.4.100.0090.01216.50
7.4.90.0140.00416.48
7.4.80.0150.00819.39
7.4.70.0060.01316.22
7.4.60.0040.01216.39
7.4.50.0040.00416.23
7.4.40.0190.00416.13
7.4.30.0180.00316.44
7.4.00.0060.00914.85
7.3.330.0060.00012.98
7.3.320.0000.00512.87
7.3.310.0050.00216.18
7.3.300.0000.00716.04
7.3.290.0070.00716.15
7.3.280.0070.00916.12
7.3.270.0040.01317.40
7.3.260.0080.00816.07
7.3.250.0140.00616.29
7.3.240.0120.00416.38
7.3.230.0090.00616.47
7.3.210.0100.00616.36
7.3.200.0030.01319.39
7.3.190.0050.01016.16
7.3.180.0070.01016.21
7.3.170.0060.01016.42
7.3.160.0040.01116.26
7.3.120.0000.01714.66
7.3.110.0040.00814.74
7.3.100.0000.01314.98
7.3.90.0030.01014.61
7.3.80.0040.00814.63
7.3.70.0000.00914.82
7.3.60.0070.00314.73
7.3.50.0060.00914.32
7.3.40.0070.00714.46
7.3.30.0030.01314.65
7.3.20.0030.01016.69
7.3.10.0030.00616.71
7.3.00.0090.00316.60
7.2.330.0100.00716.39
7.2.320.0090.00616.30
7.2.310.0070.01516.33
7.2.300.0060.01016.59
7.2.290.0130.00316.54
7.2.240.0060.00615.05
7.2.230.0140.00014.75
7.2.220.0100.00314.80
7.2.210.0030.01014.77
7.2.200.0070.01015.04
7.2.190.0000.01414.69
7.2.180.0110.00414.81
7.2.170.0110.00414.90
7.2.160.0090.00614.79
7.2.150.0060.01016.91
7.2.140.0040.01116.77
7.2.130.0000.01116.80
7.2.120.0000.01416.50
7.2.110.0030.00616.66
7.2.100.0070.00717.01
7.2.90.0070.00716.58
7.2.80.0070.00716.61
7.2.70.0060.00616.79
7.2.60.0060.00316.92
7.2.50.0030.01016.67
7.2.40.0130.00016.82
7.2.30.0070.00416.92
7.2.20.0080.00816.79
7.2.10.0040.01116.66
7.2.00.0070.00517.98
7.1.330.0070.00715.83
7.1.320.0100.00315.85
7.1.310.0030.01015.76
7.1.300.0030.00715.54
7.1.290.0030.00715.54
7.1.280.0090.00615.69
7.1.270.0030.00715.47
7.1.260.0070.00715.41
7.1.250.0000.01415.66
7.1.100.0030.00718.18
7.1.70.0080.00417.21
7.1.60.0110.01419.46
7.1.50.0070.01716.98
7.1.00.0000.07722.48
7.0.200.0000.01016.69
7.0.140.0030.04022.09
7.0.60.0100.06719.89
7.0.50.0100.07717.79
7.0.40.0030.06020.29
7.0.30.0300.07720.21
7.0.20.0300.06020.13
7.0.10.0100.08720.16
7.0.00.0200.07320.30
5.6.280.0030.07321.06
5.6.210.0000.06320.67
5.6.200.0000.04318.13
5.6.190.0100.08720.57
5.6.180.0230.04320.60
5.6.170.0270.04020.76
5.6.160.0030.06020.50
5.6.150.0030.05318.23
5.6.140.0070.04018.18
5.6.130.0170.07718.18
5.6.120.0100.08321.06
5.6.110.0100.06020.99
5.6.100.0070.07320.96
5.6.90.0070.07721.09
5.6.80.0130.06320.53
5.5.350.3930.04020.35
5.5.340.0100.08017.98
5.5.330.0070.04020.36
5.5.320.0200.05720.51
5.5.310.0330.06320.50
5.5.300.0030.04017.90
5.5.290.0070.03718.00
5.5.280.0100.08320.79
5.5.270.0100.08020.78
5.5.260.0100.07320.79
5.5.250.0070.05020.58
5.5.240.0030.08020.32
5.4.450.0930.04719.49
5.4.440.0730.06319.47
5.4.430.0600.05019.44
5.4.420.0670.05319.16
5.4.410.0770.05719.35
5.4.400.0630.04719.11
5.4.390.0170.05718.59
5.4.380.0230.05318.71
5.4.370.0130.05318.68
5.4.360.0200.05018.73
5.4.350.0170.05718.49
5.4.340.0200.05018.72
5.4.320.0130.06318.73
5.4.310.0230.04718.46
5.4.300.0230.05018.50
5.4.290.0270.04718.58
5.4.280.0170.05718.77
5.4.270.0230.05018.77
5.4.260.0170.05718.69
5.4.250.0270.04718.49
5.4.240.0170.06318.62
5.4.230.0230.05018.59
5.4.220.0170.06018.55
5.4.210.0270.04718.45
5.4.200.0230.04716.55
5.4.190.0230.05018.67
5.4.180.0300.04318.57
5.4.170.0130.06318.60
5.4.160.0130.05718.54
5.4.150.0170.05718.54
5.4.140.0300.04316.09
5.4.130.0300.04316.26
5.4.120.0170.05016.25
5.4.110.0170.05016.26
5.4.100.0230.04716.21
5.4.90.0170.05016.30
5.4.80.0200.06016.27
5.4.70.0170.06016.12
5.4.60.0200.05016.22
5.4.50.0130.06316.28
5.4.40.0200.05316.27
5.4.30.0200.05016.11
5.4.20.0170.05716.19
5.4.10.0200.04716.09
5.4.00.0170.06715.51
5.3.290.0270.05014.61
5.3.280.0270.05014.56
5.3.270.0270.05314.54
5.3.260.0270.05714.57
5.3.250.0200.05314.60
5.3.240.0300.04714.51
5.3.230.0200.05314.59
5.3.220.0170.06014.56
5.3.210.0270.04714.66
5.3.200.0170.05314.44
5.3.190.0230.05314.68
5.3.180.0170.05314.51
5.3.170.0230.05014.55
5.3.160.0230.04714.59
5.3.150.0130.05714.51
5.3.140.0170.05314.50
5.3.130.0170.05314.51
5.3.120.0200.05014.58
5.3.110.0200.07314.50
5.3.100.0270.04314.04
5.3.90.0130.05313.93
5.3.80.0200.05013.95
5.3.70.0200.05013.94
5.3.60.0130.05314.00
5.3.50.0170.05013.95
5.3.40.0170.05313.92
5.3.30.0230.05713.82
5.3.20.0300.05713.63
5.3.10.0130.05313.61
5.3.00.0270.04313.53
5.2.170.0070.05011.11
5.2.160.0270.03011.05
5.2.150.0200.03311.18
5.2.140.0100.04711.13
5.2.130.0100.04311.14
5.2.120.0170.04311.23
5.2.110.0170.04311.13
5.2.100.0000.05311.09
5.2.90.0130.04011.14
5.2.80.0100.04711.01
5.2.70.0100.04711.04
5.2.60.0130.04011.03
5.2.50.0130.04311.05
5.2.40.0070.04710.91
5.2.30.0100.04311.12
5.2.20.0100.04311.01
5.2.10.0100.04010.90
5.2.00.0070.04710.87
5.1.60.0100.0339.97
5.1.50.0170.03010.11
5.1.40.0130.0339.95
5.1.30.0100.03710.32
5.1.20.0100.03710.50
5.1.10.0200.02710.10
5.1.00.0230.02310.20
5.0.50.0130.0278.66
5.0.40.0030.0308.54
5.0.30.0030.0478.20
5.0.20.0070.0278.36
5.0.10.0070.0308.29
5.0.00.0170.0338.20
4.4.90.0070.0235.95
4.4.80.0030.0235.84
4.4.70.0000.0305.91
4.4.60.0130.0175.86
4.4.50.0170.0275.82
4.4.40.0100.0335.91
4.4.30.0070.0205.96
4.4.20.0030.0235.96
4.4.10.0170.0136.01
4.4.00.0100.0335.85
4.3.110.0100.0235.80
4.3.100.0070.0205.85
4.3.90.0100.0235.82
4.3.80.0130.0405.82
4.3.70.0100.0205.80
4.3.60.0200.0175.84
4.3.50.0070.0235.89
4.3.40.0100.0305.76
4.3.30.0070.0234.57
4.3.20.0030.0234.56
4.3.10.0070.0204.56
4.3.00.0170.0206.83

preferences:
50.81 ms | 401 KiB | 5 Q